diff options
Diffstat (limited to 'boost/math/policies/policy.hpp')
-rw-r--r-- | boost/math/policies/policy.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/boost/math/policies/policy.hpp b/boost/math/policies/policy.hpp index de813fb8aa..c1e1a7be4a 100644 --- a/boost/math/policies/policy.hpp +++ b/boost/math/policies/policy.hpp @@ -914,11 +914,9 @@ struct series_factor_calc<T, Digits, mpl::true_, mpl::true_> template <class T, class Digits> struct series_factor_calc<T, Digits, mpl::true_, mpl::false_> { - BOOST_STATIC_CONSTANT(boost::uintmax_t, v = static_cast<boost::uintmax_t>(1u) << (Digits::value - 1)); - static BOOST_MATH_CONSTEXPR T get() BOOST_MATH_NOEXCEPT(T) { - return 1 / static_cast<T>(v); + return 1 / static_cast<T>(static_cast<boost::uintmax_t>(1u) << (Digits::value - 1)); } }; template <class T, class Digits> |