forked from boostorg/conversion
Added no exception handling patch
[SVN r18235]
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user