forked from boostorg/conversion
Use BOOST_LCAST_THROW_BAD_CAST consistently.
[SVN r59664]
This commit is contained in:
@@ -1191,11 +1191,7 @@ namespace boost
|
|||||||
Target result;
|
Target result;
|
||||||
|
|
||||||
if(!(interpreter << arg && interpreter >> result))
|
if(!(interpreter << arg && interpreter >> result))
|
||||||
#ifndef BOOST_NO_TYPEID
|
BOOST_LCAST_THROW_BAD_CAST(Source, Target);
|
||||||
throw_exception(bad_lexical_cast(typeid(Source), typeid(Target)));
|
|
||||||
#else
|
|
||||||
throw_exception(bad_lexical_cast());
|
|
||||||
#endif
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user