|
From: | James Crotinger |
Subject: | RE: [pooma-dev] signed == signed - sizeof(...), and other warning s... (non-POOMA C++ questions) |
Date: | Tue, 1 May 2001 14:02:58 -0700 |
>
> 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
[Prev in Thread] | Current Thread | [Next in Thread] |