Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-05-09 12:09:32

From: Jonathan Wakely <cow_at_[hidden]>
> On Fri, May 06, 2005 at 10:10:04PM -0400, Jason Hise wrote:
> > In many cases I am getting the warning that specific classes have
> > virtual functions, but non virtual destructors. This is intentional,
> > because they only have virtual functions in debug mode (pure virtual, to
> > make the singleton uncreatable by client code) and will never be
> > destroyed through a pointer to base. I wanted to avoid the overhead of
> > a vtable in release mode. Is there a way to disable this specific
> > warning while compiling with gcc?
> -Wno-non-virtual-dtor

That would apply to all code using singleton, not just to
singleton itself.

Rob Stewart                           stewart_at_[hidden]
Software Engineer           
Susquehanna International Group, LLP  using std::disclaimer;

Boost list run by bdawes at, gregod at, cpdaniel at, john at