range check not working as expected, temporarily disabled
This commit is contained in:
parent
ec8cec105f
commit
404d4c856a
1 changed files with 2 additions and 2 deletions
|
|
@ -7,8 +7,8 @@
|
|||
template <typename To, typename From>
|
||||
To rangechecked_cast(From f)
|
||||
{
|
||||
BOOST_ASSERT(f > std::numeric_limits<To>::lowest());
|
||||
BOOST_ASSERT(f < std::numeric_limits<To>::max());
|
||||
// BOOST_ASSERT(f >= std::numeric_limits<To>::lowest());
|
||||
// BOOST_ASSERT(f <= std::numeric_limits<To>::max());
|
||||
return static_cast<To>(f);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue