Boost logo

Boost :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2007-12-17 14:11:39


typeid() doesn't require RTTI on MSVC? That's news to me. What about GCC and
other popular [cross-platform] compilers?

On Dec 16, 2007 1:50 PM, Beman Dawes <bdawes_at_[hidden]> wrote:

> Peter Dimov wrote:
> > Beman Dawes:
> >
> >> Where RTTI is useful, but not essential, I'd personally rather not
> >> remove it entirely. Instead, the code could respond to a macro
> >> (BOOST_NO_RTTI perhaps) and avoid usage when present.
> >
> > In non-essential scenarios, often the proper macro to test is
> > BOOST_NO_TYPEID:
> >
> > http://svn.boost.org/trac/boost/ticket/1104
> >
> > since typeid(T) does not require the R in RTTI and may be supported even
> > when RTTI is off (under MSVC for example).
>
> Good point.
>
> --Beman
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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