2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-25 18:32:08 +00:00

Update big_constant.hpp to work standalone.

This commit is contained in:
jzmaddock
2017-10-29 19:32:13 +00:00
parent 06292b0873
commit 81c8a80dd5

View File

@@ -12,6 +12,7 @@
#include <boost/lexical_cast.hpp>
#endif
#include <boost/type_traits/is_convertible.hpp>
#include <boost/type_traits/is_floating_point.hpp>
namespace boost{ namespace math{
@@ -66,9 +67,9 @@ inline BOOST_MATH_CONSTEXPR T make_big_value(largest_float, const char* s, mpl::
boost::math::tools::make_big_value<T>(\
BOOST_MATH_LARGEST_FLOAT_C(x), \
BOOST_STRINGIZE(x), \
mpl::bool_< (is_convertible<boost::math::tools::largest_float, T>::value) && \
boost::mpl::bool_< (boost::is_convertible<boost::math::tools::largest_float, T>::value) && \
((D <= boost::math::tools::numeric_traits<boost::math::tools::largest_float>::digits) \
|| is_floating_point<T>::value \
|| boost::is_floating_point<T>::value \
|| (boost::math::tools::numeric_traits<T>::is_specialized && \
(boost::math::tools::numeric_traits<T>::digits10 <= boost::math::tools::numeric_traits<boost::math::tools::largest_float>::digits10))) >(), \
boost::is_convertible<const char*, T>())