From 429825535b9e635d61a2c8fc6fdad42e7a4e4fd6 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 3 Sep 2015 09:34:42 +0100 Subject: [PATCH] Fix type of boolean values. --- include/boost/math/tools/precision.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {};