From 3ecac311fd4403fb67ee5deaefb1c24bdd51451f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 11 Apr 2003 10:49:52 +0000 Subject: [PATCH] Added no exception handling patch [SVN r18235] --- include/boost/lexical_cast.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/lexical_cast.hpp b/include/boost/lexical_cast.hpp index 1043b15..33c0851 100644 --- a/include/boost/lexical_cast.hpp +++ b/include/boost/lexical_cast.hpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #ifdef BOOST_NO_STRINGSTREAM @@ -186,7 +187,7 @@ namespace boost Target result; if(!(interpreter << arg && interpreter >> result)) - throw bad_lexical_cast(typeid(Target), typeid(Source)); + throw_exception(detail::no_lexical_conversion()); return result; } } @@ -201,3 +202,4 @@ namespace boost #undef DISABLE_WIDE_CHAR_SUPPORT #endif +