[CMake] Re: Changing MD -> MT (+patch for free toolkit)

Gonzalo Garramuño ggarra at advancedsl.com.ar
Mon Feb 18 23:43:19 EST 2008


Mathieu Malaterre wrote:
> Ok this was yet-another-weird-dll thingy, one cannot do:
> 
> class GDCM_EXPORT String : std::string { ... }
> 

Please, learn a little bit more about C++.  You should never inherit 
from std::string (or any std::* container) as their functions or 
destructor are not virtual.  That can (and will) spell disaster for 
anyone else trying to use your library/functions or even for yourself if 
you go through pointers or references.

-- 
Gonzalo Garramuño
ggarra at advancedsl.com.ar

AMD4400 - ASUS48N-E
GeForce7300GT
Xubuntu Gutsy


More information about the CMake mailing list