Covariant returns?
Mike Stump
mrs@windriver.com
Tue Mar 7 12:37:00 GMT 2000
> Date: Tue, 7 Mar 2000 09:19:21 +0100
> From: "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
> To: mrs@windriver.com
> > No, the problem you're seeing is much worse and harder for us to fix.
> > That is the correct output from the compiler. Only your understanding
> > of C++ is flawed.
> It seems my understanding of C++ is flawed, too. Can you elaborate
> why the compiler is acting correctly for his example? I'd assume it
> is a bug in the compiler to return a C* from a method that
> statically returns a B*.
Oh, gee, I've been had! Sorry about that! [ red face, deeply
embarrassed ] And I knew better, I swear. Please ignore my message.
More information about the Gcc
mailing list