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

Re: Fixing old code for GCC 3.2...



On Sun, Mar 09, 2003 at 11:54:21AM +0100, Marcelo E. Magallon wrote:
> On Sun, Mar 09, 2003 at 11:42:52AM +0200, Hugo van der Merwe wrote:
> 
>  > Anyone have an idea what this might mean:
>  > 
>  > qsdrvhittest.h:41: sorry, not implemented: adjusting pointers for covariant
>  >    returns
> 
>  Tempting as it might be, I won't reply "yes".  :-)

Thanks! I appreciate that. ;)

>  Not just "yes", that is...
> 
>  In sort, this:
> 
>     class Base
>     {
>         public:
>             virtual Base* foo();
>     };
> 
>     class Derived : public Base
>     {
>         public:
>             Derived* foo();
>     };
> 
>  the foo() method returns a different type depending on the type of the
>  object.
> 
>  See GCC problem report 3706.  It's not implemented in 3.2.

Ah, right. Thanks for answering something I should have found the
answer to myself...

Hugo
-- 
The earth's surface is accelerating outward at 9.8 meters per sec^2
1024D/60715698: 5F2E 8EC2 E0A4 5D25 0569  F281 4A6C D76D 6071 5698

Attachment: pgpKIA8IFZrmf.pgp
Description: PGP signature


Reply to: