diff --git a/include/boost/math/tools/precision.hpp b/include/boost/math/tools/precision.hpp index 4421b982c..c867707c0 100644 --- a/include/boost/math/tools/precision.hpp +++ b/include/boost/math/tools/precision.hpp @@ -206,12 +206,12 @@ struct log_limit_traits mpl::int_<(std::numeric_limits::max_exponent > INT_MAX ? INT_MAX : static_cast(std::numeric_limits::max_exponent))>, mpl::int_<0> >::type tag_type; - BOOST_STATIC_CONSTANT(int, value = tag_type::value); + BOOST_STATIC_CONSTANT(bool, value = tag_type::value ? true : false); BOOST_STATIC_ASSERT(::std::numeric_limits::is_specialized || (value == 0)); }; template struct log_limit_noexcept_traits_imp : public log_limit_traits {}; -template struct log_limit_noexcept_traits_imp : public boost::integral_constant {}; +template struct log_limit_noexcept_traits_imp : public boost::integral_constant {}; template struct log_limit_noexcept_traits : public log_limit_noexcept_traits_imp {};