This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++/3150
>>>>> "Benjamin" == Benjamin Kosnik <bkoz@redhat.com> writes:
>> writing them explicitly allows the vtable heuristic to work.
> Is there anyway you can expand on this, so when they go back in this can
> be noted?
It's to do with the old question of where to put the vtable (and type_info
node and such). A standard heuristic is to put it with the definition of
the first non-inline, non-pure virtual function defined in the class. The
destructor is an obvious choice for this, since it has to be defined
anyway.
Jason