Re: Calling a pure virtual function

2005-07-09 Thread Adam Nielsen
> Roughly speaking, when number() is invoked, the object still has type > Base (with a corresponding vtable). One's constructor will change the > type once the Base part has been constructed. Aha yes, I didn't even think of that! Thanks Florian and Lion for your helpful answers! > The following

Calling a pure virtual function

2005-07-09 Thread Adam Nielsen
Hi all, I was expecting the following code snippet to work, so am I doing something wrong, or is there an issue with GCC? I was under the impression that this is allowed, according to http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.1 It seems like GCC initially allows it as