logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Sailer <...@idmt.fraunhofer.de>
Subject Re: Class xxx has virtual functions but non-virtual destructor
Date Fri, 07 May 2004 08:05:50 GMT

Maybe it is not a real problem, but i too still get lots of warnings 
when including log4cxx headers (maybe depending on compiler and compiler 
configuration... ), which is quite annoying. So getting rid of this 
warnings is nothing urgent, but would be nice to have.
Maybe I find some time to have a look at it tonight.


Michaël CATANZARITI wrote:
> Hello,
> I didn't get this warning on Linux or Windows.
> In C++, a virtual destructor is mandatory only if you call delete on a 
> pointer to a parent class of the class to delete.
> in log4cxx case, the classes Class, ClassObject, ClassAppender, ... are 
> instanciated as global/static variables (cf. macro 
> DECLARE_LOG4CXX_OBJECT). Therefor I think there is no problem !
> Michaël
Dipl.-Phys. Christian Sailer                      sar@idmt.fraunhofer.de
Fraunhofer-Institut                             fon:   ++49-3677-467-223
für Digitale Medientechnologie IDMT             fax:   ++49-3677-467-467
Langewiesener Str. 22    D-98693 Ilmenau        mobil:  ++49-173-3966924

View raw message