Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-01-07 10:07:05


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk