* suppress compilation warnings, if the compiler requires a return, even when it can never be reached

[SVN r73640]
This commit is contained in:
Antony Polukhin
2011-08-10 18:58:06 +00:00
parent e8108e5066
commit 9955dcce51

View File

@@ -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));
}
};