range check not working as expected, temporarily disabled

This commit is contained in:
eelke 2019-11-25 20:08:19 +01:00
parent ec8cec105f
commit 404d4c856a

View file

@ -7,8 +7,8 @@
template <typename To, typename From> template <typename To, typename From>
To rangechecked_cast(From f) To rangechecked_cast(From f)
{ {
BOOST_ASSERT(f > std::numeric_limits<To>::lowest()); // BOOST_ASSERT(f >= std::numeric_limits<To>::lowest());
BOOST_ASSERT(f < std::numeric_limits<To>::max()); // BOOST_ASSERT(f <= std::numeric_limits<To>::max());
return static_cast<To>(f); return static_cast<To>(f);
} }