From f57ecf82908c356c1aa1bae31bc7c27322ee63eb Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 29 Jan 2015 11:47:32 +0000 Subject: [PATCH] Fix type traits dispatching to work with pending new version. --- include/boost/multiprecision/cpp_int.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/multiprecision/cpp_int.hpp b/include/boost/multiprecision/cpp_int.hpp index 2713b7ec..3cff14be 100644 --- a/include/boost/multiprecision/cpp_int.hpp +++ b/include/boost/multiprecision/cpp_int.hpp @@ -860,7 +860,7 @@ private: protected: template typename boost::disable_if_c::is_specialized && (std::numeric_limits::digits <= (int)MinBits)>::type - check_in_range(T val, const mpl::int_&, const mpl::false_&) + check_in_range(T val, const mpl::int_&, const boost::false_type&) { typedef typename common_type::type common_type; @@ -868,7 +868,7 @@ protected: BOOST_THROW_EXCEPTION(std::range_error("The argument to a cpp_int constructor exceeded the largest value it can represent.")); } template - void check_in_range(T val, const mpl::int_&, const mpl::true_&) + void check_in_range(T val, const mpl::int_&, const boost::true_type&) { typedef typename common_type::type common_type; @@ -878,7 +878,7 @@ protected: BOOST_THROW_EXCEPTION(std::range_error("The argument to an unsigned cpp_int constructor was negative.")); } template - BOOST_MP_FORCEINLINE void check_in_range(T, const mpl::int_&, const mpl::bool_&){} + BOOST_MP_FORCEINLINE void check_in_range(T, const mpl::int_&, const boost::integral_constant&){} template BOOST_MP_FORCEINLINE void check_in_range(T val)