bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: virtual table off by three problem


From: André Pönitz
Subject: Re: virtual table off by three problem
Date: 13 Feb 2002 09:29:30 GMT

Aubrey Holland <address@hidden> wrote:
> OK, I finally figured it out.  I had a class definition like this:
> 
> class A
> {
>       virtual void a();
> #ifdef NEEDED_DEFINE
>       virtual void b();
> #endif
>       virtual void c();
> };

That's a big no-no. Different definitions of the same class are ok only in
very restricted cases. IIRC the token sequences produced must by identical,
so you could shift some whitespace around, but not leave out a function
declaration.

Andre'

-- 
André Pönitz .............................................. address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]