mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-26 10:37:34 +02:00
fix constexpr-ness of a couple of algorithhms - and tests. Based on Pull Request #44 by Flast - thanks!
This commit is contained in:
@ -306,7 +306,7 @@ void test_constexpr()
|
||||
BOOST_CHECK(check_max_out);
|
||||
}
|
||||
{
|
||||
short foo = 50;
|
||||
BOOST_CXX14_CONSTEXPR short foo = 50;
|
||||
BOOST_CXX14_CONSTEXPR bool check_float = ( 56 == ba::clamp ( foo, 56.9, 129 ));
|
||||
BOOST_CHECK(check_float);
|
||||
BOOST_CXX14_CONSTEXPR bool check_over = ( 24910 == ba::clamp ( foo, 12345678, 123456999 ));
|
||||
|
Reference in New Issue
Block a user