|
Boost : |
From: Stefan Seefeld (sseefeld_at_[hidden])
Date: 2004-09-02 13:02:38
> From: Jurko Gospodnetiæ [mailto:jurko_at_[hidden]]
> Sent: September 2, 2004 04:14
> 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.
Out of curiosity: why would anybody not use RTTI ? Why shouldn't
compilers without RTTI just considered broken ?
Being able to switch RTTI support off just introduces binary
incompatibilities
and makes some code illegal (you can't cast between classes with a virtual
inheritance relationship without dynamic_cast, etc.)
Regards,
Stefan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk