
2 Sep
2004
2 Sep
'04
11:42 a.m.
Jurko Gospodnetiæ wrote:
Hi all.
I was wondering if boost has any portable way for detecting whether RTTI is enabled? (For instance a macro expanding to _CPPRTTI in Visual Studio). If there is, I have not been able to find it.
No, there is no BOOST_NO_RTTI. BTW "no RTTI" on g++ means no RTTI, period. On MSVC, it means "no dynamic_cast or typeid on polymorphic types, but everything else (f.ex. typeid(T) for a type) works".