Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2007-02-23 04:50:04


Michael Marcin wrote:
> Hi, I'm working on a platform that has exceptions and STL but no
> std::type_info (weird right?).
> I want to use lexical_cast but I can't only because bad_lexical_cast
> uses type_info.
> I've modified my local copy with #ifdef HAS_RTTI around the 3 places
> bad_lexical_cast is used to simply throw a bad_lexical_cast without
> the source and target type_info members.
>
> Is there a standard BOOST_HAS_TYPE_INFO or some other config macro I
> can/should use for this?

Not currently, it would be easy enough to add if this is going to be a
recurring issue.

John.


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