Added no exception handling patch

[SVN r18235]
This commit is contained in:
John Maddock
2003-04-11 10:49:52 +00:00
parent 8828af5f5b
commit 3ecac311fd

View File

@@ -18,6 +18,7 @@
#include <typeinfo> #include <typeinfo>
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/limits.hpp> #include <boost/limits.hpp>
#include <boost/throw_exception.hpp>
#include <boost/type_traits/is_pointer.hpp> #include <boost/type_traits/is_pointer.hpp>
#ifdef BOOST_NO_STRINGSTREAM #ifdef BOOST_NO_STRINGSTREAM
@@ -186,7 +187,7 @@ namespace boost
Target result; Target result;
if(!(interpreter << arg && interpreter >> result)) if(!(interpreter << arg && interpreter >> result))
throw bad_lexical_cast(typeid(Target), typeid(Source)); throw_exception(detail::no_lexical_conversion<Target, Source>());
return result; return result;
} }
} }
@@ -201,3 +202,4 @@ namespace boost
#undef DISABLE_WIDE_CHAR_SUPPORT #undef DISABLE_WIDE_CHAR_SUPPORT
#endif #endif