
7 Jan
2005
7 Jan
'05
3:07 p.m.
Douglas Gregor wrote:
We've now had a user request that could be solved by adding a BOOST_NO_RTTI macro, that (when set) would disable Boost's use of constructs that use run-time type information (dynamic_cast, typeid, etc.), similar to our BOOST_NO_EXCEPTIONS.
http://lists.boost.org/MailArchives/boost-users/msg09240.php
I'll plan to add it unless there is violent disagreement.
There are two types of "no RTTI". Everything except dynamic_cast and typeid on polymorphic types works; or everything involving RTTI fails in compile time. The practical difference is that there is code that works on the first type of "no RTTI" (get_deleter, function<>::target) and fails on the second.