
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? Thanks, Michael Marcin

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.
participants (2)
-
John Maddock
-
Michael Marcin