[pooma-dev] signed == signed - sizeof(...), and other warning s... (non-POOMA C++ questions)
James Crotinger
JimC at proximation.com
Tue May 1 21:02:58 UTC 2001
>
> To eliminate the warnings,
> 1) add "virtual" in front of the destructor and
> 2) use the command line option -Wno-ctor-dtor-privacy when compiling.
I didn't know about the second one - thanks.
As for the first, COM doesn't allow virtual destructors in interfaces, which
are just abstract base classes like IA. Making the destructor virtual in A
won't help if there isn't a slot for it in IA's vtable. And it doesn't need
to be virtual since it is only called from the virtual release method.
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010501/2171ce1d/attachment.html>
More information about the pooma-dev
mailing list