forked from boostorg/conversion
Fixes #5732.
* suppress compilation warnings, if the compiler requires a return, even when it can never be reached [SVN r73640]
This commit is contained in:
@@ -1750,6 +1750,7 @@ namespace boost
|
||||
} catch( ::boost::numeric::bad_numeric_cast const& ) {
|
||||
BOOST_LCAST_THROW_BAD_CAST(Source, Target);
|
||||
}
|
||||
BOOST_UNREACHABLE_RETURN(static_cast<Target>(0));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1776,6 +1777,7 @@ namespace boost
|
||||
} catch( ::boost::numeric::bad_numeric_cast const& ) {
|
||||
BOOST_LCAST_THROW_BAD_CAST(Source, Target);
|
||||
}
|
||||
BOOST_UNREACHABLE_RETURN(static_cast<Target>(0));
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user