Re: [Cppunit-devel] config.h changes committed
Brought to you by:
blep
From: Baptiste L. <bl...@cl...> - 2001-06-18 07:21:17
|
> 3. Is it useful to have CPPUNIT_USE_TYPEINFO as well as > CPPUNIT_HAVE_RTTI? Certainly you can't define the former without the > latter. Would you ever WANT to disable using RTTI, if available? If > not, then we can eliminate USE_TYPEINFO in favour of HAVE_RTTI. If > disabling it _is_ deemed useful, then the same comment about the extra > symbol applies; the stanza can be simplified to > > #ifndef CPPUNIT_USE_TYPEINFO > #define CPPUNIT_USE_TYPEINFO 1 > #endif HAVE_RTTI say that you can do dynamic_cast<...>, USE_TYPEINFO say that typeinfo.name() returns a "human readable" name that can be used to identify test case. When you want maximum portability, you want to disable both. Baptiste. --- Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html Author of The Text Reformatter, a tool for fanfiction readers and writers. Language: English, French (Well, I'm French). |