Darren New <dne### [at] sanrrcom> wrote:
> Invisible wrote:
> > We have a buggy program that keeps throwing exceptions due to a "pure
> > virtual function call".
> Usually that means you're invoking a dynamically-bound method for which
> there is no definition. I didn't know you could get that in C++ as the
> first mistake the program makes.
I think that error happens if you try to call a pure virtual function
in the initialization list of the base class constructor. (What I really
don't understand is why it isn't a compile-time error...)
--
- Warp
Post a reply to this message
|