summaryrefslogtreecommitdiff
path: root/boost/math/tools/big_constant.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/tools/big_constant.hpp')
-rw-r--r--boost/math/tools/big_constant.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/math/tools/big_constant.hpp b/boost/math/tools/big_constant.hpp
index 4386609989..a6f7bc0f1a 100644
--- a/boost/math/tools/big_constant.hpp
+++ b/boost/math/tools/big_constant.hpp
@@ -54,9 +54,9 @@ inline T make_big_value(largest_float, const char* s, mpl::false_ const&, mpl::f
}
#endif
template <class T>
-inline BOOST_MATH_CONSTEXPR const char* make_big_value(largest_float, const char* s, mpl::false_ const&, mpl::true_ const&) BOOST_MATH_NOEXCEPT(T)
+inline BOOST_MATH_CONSTEXPR T make_big_value(largest_float, const char* s, mpl::false_ const&, mpl::true_ const&) BOOST_MATH_NOEXCEPT(T)
{
- return s;
+ return T(s);
}
//
@@ -78,7 +78,7 @@ inline BOOST_MATH_CONSTEXPR const char* make_big_value(largest_float, const char
#define BOOST_MATH_HUGE_CONSTANT(T, D, x)\
boost::math::tools::make_big_value<T>(0.0L, BOOST_STRINGIZE(x), \
mpl::bool_<is_floating_point<T>::value || (boost::math::tools::numeric_traits<T>::is_specialized && boost::math::tools::numeric_traits<T>::max_exponent <= boost::math::tools::numeric_traits<boost::math::tools::largest_float>::max_exponent && boost::math::tools::numeric_traits<T>::digits <= boost::math::tools::numeric_traits<boost::math::tools::largest_float>::digits)>(), \
- boost::is_convertible<const char*, T>())
+ boost::is_constructible<const char*, T>())
}}} // namespaces