diff --git a/example/cstdfloat_example.cpp b/example/cstdfloat_example.cpp index 64caa220e..29af3a254 100644 --- a/example/cstdfloat_example.cpp +++ b/example/cstdfloat_example.cpp @@ -30,7 +30,6 @@ Dover, New York, 4th ed., (1945), pages 180-188. #include // for pow function. #include // For gamma function. //] [/cstdfloat_example_1] -#include #include diff --git a/example/numerical_derivative_example.cpp b/example/numerical_derivative_example.cpp index b60f46ba9..6f05c6ba0 100644 --- a/example/numerical_derivative_example.cpp +++ b/example/numerical_derivative_example.cpp @@ -10,10 +10,10 @@ # include # include # include +# include # include #include -#include #include // for float_distance //[numeric_derivative_example diff --git a/example/root_elliptic_finding.cpp b/example/root_elliptic_finding.cpp index 97cf74e42..28305c77a 100644 --- a/example/root_elliptic_finding.cpp +++ b/example/root_elliptic_finding.cpp @@ -16,8 +16,6 @@ #include #include -#include -#include #include #include #include @@ -49,6 +47,7 @@ using boost::multiprecision::cpp_bin_float_50; #include // std::ofstream #include #include // for type name using typid(thingy).name(); +#include #ifdef __FILE__ std::string sourcefilename = __FILE__; @@ -477,7 +476,7 @@ int test_root(cpp_bin_float_100 big_radius, cpp_bin_float_100 big_arc, cpp_bin_f using boost::timer::cpu_times; using boost::timer::cpu_timer; - long eval_count = boost::is_floating_point::value ? 1000000 : 10000; // To give a sufficiently stable timing for the fast built-in types, + long eval_count = std::is_floating_point::value ? 1000000 : 10000; // To give a sufficiently stable timing for the fast built-in types, // This takes an inconveniently long time for multiprecision cpp_bin_float_50 etc types. cpu_times now; // Holds wall, user and system times. diff --git a/example/root_finding_algorithms.cpp b/example/root_finding_algorithms.cpp index df2e68acc..c51439072 100644 --- a/example/root_finding_algorithms.cpp +++ b/example/root_finding_algorithms.cpp @@ -15,9 +15,6 @@ #include #include #include -#include -#include - #include "table_type.hpp" // Copy of i:\modular-boost\libs\math\test\table_type.hpp // #include "handle_test_result.hpp" @@ -55,6 +52,7 @@ using boost::multiprecision::cpp_bin_float_50; #include // std::ofstream #include #include // for type name using typid(thingy).name(); +#include #ifndef BOOST_ROOT # define BOOST_ROOT i:/modular-boost/ @@ -203,7 +201,7 @@ T cbrt_noderiv(T x) // Maybe guess should be double, or use enable_if to avoid warning about conversion double to float here? T guess; - if (boost::is_fundamental::value) + if (std::is_fundamental::value) { int exponent; frexp(x, &exponent); // Get exponent of z (ignore mantissa). @@ -257,7 +255,7 @@ T cbrt_deriv(T x) using namespace boost::math::tools; int exponent; T guess; - if(boost::is_fundamental::value) + if(std::is_fundamental::value) { frexp(x, &exponent); // Get exponent of z (ignore mantissa). guess = ldexp(static_cast(1), exponent / 3); // Rough guess is to divide the exponent by three. @@ -301,7 +299,7 @@ T cbrt_2deriv(T x) using namespace boost::math::tools; int exponent; T guess; - if(boost::is_fundamental::value) + if(std::is_fundamental::value) { frexp(x, &exponent); // Get exponent of z (ignore mantissa). guess = ldexp(static_cast(1), exponent / 3); // Rough guess is to divide the exponent by three. @@ -328,7 +326,7 @@ T cbrt_2deriv_s(T x) using namespace boost::math::tools; int exponent; T guess; - if(boost::is_fundamental::value) + if(std::is_fundamental::value) { frexp(x, &exponent); // Get exponent of z (ignore mantissa). guess = ldexp(static_cast(1), exponent / 3); // Rough guess is to divide the exponent by three. diff --git a/example/root_n_finding_algorithms.cpp b/example/root_n_finding_algorithms.cpp index 017d6e057..35a1adc78 100644 --- a/example/root_n_finding_algorithms.cpp +++ b/example/root_n_finding_algorithms.cpp @@ -16,8 +16,6 @@ #include #include -#include -#include #include #include @@ -50,6 +48,7 @@ using boost::multiprecision::cpp_bin_float_50; #include // std::ofstream #include #include // for type name using typid(thingy).name(); +#include #ifdef __FILE__ std::string sourcefilename = __FILE__; @@ -464,7 +463,7 @@ int test_root(cpp_bin_float_100 big_value, cpp_bin_float_100 answer, const char* using boost::timer::cpu_times; using boost::timer::cpu_timer; - int eval_count = boost::is_floating_point::value ? 10000000 : 100000; // To give a sufficiently stable timing for the fast built-in types, + int eval_count = std::is_floating_point::value ? 10000000 : 100000; // To give a sufficiently stable timing for the fast built-in types, //int eval_count = 1000000; // To give a sufficiently stable timing for the fast built-in types, // This takes an inconveniently long time for multiprecision cpp_bin_float_50 etc types. diff --git a/include/boost/math/distributions/detail/derived_accessors.hpp b/include/boost/math/distributions/detail/derived_accessors.hpp index e90e7494d..fb2e89dc6 100644 --- a/include/boost/math/distributions/detail/derived_accessors.hpp +++ b/include/boost/math/distributions/detail/derived_accessors.hpp @@ -27,7 +27,7 @@ // can find the definitions referred to herein. // -#include +#include #include #ifdef BOOST_MSVC diff --git a/include/boost/math/distributions/geometric.hpp b/include/boost/math/distributions/geometric.hpp index 6b2781657..cb59c1b9f 100644 --- a/include/boost/math/distributions/geometric.hpp +++ b/include/boost/math/distributions/geometric.hpp @@ -44,10 +44,6 @@ #include // for root finding. #include -#include -#include -#include - #include // using std::numeric_limits; #include diff --git a/include/boost/math/distributions/negative_binomial.hpp b/include/boost/math/distributions/negative_binomial.hpp index 6cb45e479..00cb0e615 100644 --- a/include/boost/math/distributions/negative_binomial.hpp +++ b/include/boost/math/distributions/negative_binomial.hpp @@ -52,10 +52,6 @@ #include // for root finding. #include -#include -#include -#include - #include // using std::numeric_limits; #include diff --git a/include/boost/math/interpolators/barycentric_rational.hpp b/include/boost/math/interpolators/barycentric_rational.hpp index 5419c70af..4a2df01b4 100644 --- a/include/boost/math/interpolators/barycentric_rational.hpp +++ b/include/boost/math/interpolators/barycentric_rational.hpp @@ -40,7 +40,7 @@ public: barycentric_rational(std::vector&& x, std::vector&& y, size_t approximation_order = 3); template - barycentric_rational(InputIterator1 start_x, InputIterator1 end_x, InputIterator2 start_y, size_t approximation_order = 3, typename boost::disable_if_c::value>::type* = 0); + barycentric_rational(InputIterator1 start_x, InputIterator1 end_x, InputIterator2 start_y, size_t approximation_order = 3, typename std::enable_if::value>::type* = 0); Real operator()(Real x) const; @@ -77,7 +77,7 @@ barycentric_rational::barycentric_rational(std::vector&& x, std::vec template template -barycentric_rational::barycentric_rational(InputIterator1 start_x, InputIterator1 end_x, InputIterator2 start_y, size_t approximation_order, typename boost::disable_if_c::value>::type*) +barycentric_rational::barycentric_rational(InputIterator1 start_x, InputIterator1 end_x, InputIterator2 start_y, size_t approximation_order, typename std::enable_if::value>::type*) : m_imp(std::make_shared>(start_x, end_x, start_y, approximation_order)) { } diff --git a/include/boost/math/quadrature/detail/tanh_sinh_constants.hpp b/include/boost/math/quadrature/detail/tanh_sinh_constants.hpp index e9af4a9c5..e4269aff0 100644 --- a/include/boost/math/quadrature/detail/tanh_sinh_constants.hpp +++ b/include/boost/math/quadrature/detail/tanh_sinh_constants.hpp @@ -7,7 +7,10 @@ #ifndef BOOST_MATH_QUADRATURE_DETAIL_TANH_SINH_CONSTANTS_HPP #define BOOST_MATH_QUADRATURE_DETAIL_TANH_SINH_CONSTANTS_HPP -#include +#include +#include +#include +#include #include namespace boost { diff --git a/include/boost/math/quaternion.hpp b/include/boost/math/quaternion.hpp index 7c4e6409c..561e09be9 100644 --- a/include/boost/math/quaternion.hpp +++ b/include/boost/math/quaternion.hpp @@ -13,8 +13,6 @@ #include // for BOOST_NO_STD_LOCALE #include #include -#include -#include #ifndef BOOST_NO_STD_LOCALE # include // for the "<<" operator #endif /* BOOST_NO_STD_LOCALE */ diff --git a/include/boost/math/special_functions/detail/bessel_jy.hpp b/include/boost/math/special_functions/detail/bessel_jy.hpp index 529edb4ea..a319760b4 100644 --- a/include/boost/math/special_functions/detail/bessel_jy.hpp +++ b/include/boost/math/special_functions/detail/bessel_jy.hpp @@ -20,7 +20,6 @@ #include #include #include -#include #include // Bessel functions of the first and second kind of fractional order diff --git a/include/boost/math/special_functions/detail/fp_traits.hpp b/include/boost/math/special_functions/detail/fp_traits.hpp index b2d3d7ea5..3a69492c1 100644 --- a/include/boost/math/special_functions/detail/fp_traits.hpp +++ b/include/boost/math/special_functions/detail/fp_traits.hpp @@ -21,13 +21,12 @@ With these techniques, the code could be simplified. #endif #include +#include #include - +#include #include -#include #include #include -#include #ifdef BOOST_NO_STDC_NAMESPACE namespace std{ using ::memcpy; } @@ -526,7 +525,7 @@ template<> struct size_to_precision<16, true> template struct select_native { - typedef BOOST_DEDUCED_TYPENAME size_to_precision::value>::type precision; + typedef BOOST_DEDUCED_TYPENAME size_to_precision::value>::type precision; typedef fp_traits_non_native type; }; template<> @@ -564,7 +563,7 @@ struct select_native template struct fp_traits { - typedef BOOST_DEDUCED_TYPENAME size_to_precision::value>::type precision; + typedef BOOST_DEDUCED_TYPENAME size_to_precision::value>::type precision; #if defined(BOOST_MATH_USE_STD_FPCLASSIFY) && !defined(BOOST_MATH_DISABLE_STD_FPCLASSIFY) typedef typename select_native::type type; #else diff --git a/include/boost/math/special_functions/detail/iconv.hpp b/include/boost/math/special_functions/detail/iconv.hpp index e8fc3723c..90b4aa938 100644 --- a/include/boost/math/special_functions/detail/iconv.hpp +++ b/include/boost/math/special_functions/detail/iconv.hpp @@ -10,8 +10,8 @@ #pragma once #endif +#include #include -#include namespace boost { namespace math { namespace detail{ diff --git a/include/boost/math/special_functions/gamma.hpp b/include/boost/math/special_functions/gamma.hpp index a3919671a..98c775fbb 100644 --- a/include/boost/math/special_functions/gamma.hpp +++ b/include/boost/math/special_functions/gamma.hpp @@ -33,11 +33,11 @@ #include #include #include -#include #include #include #include +#include #ifdef BOOST_MSVC # pragma warning(push) diff --git a/include/boost/math/special_functions/lambert_w.hpp b/include/boost/math/special_functions/lambert_w.hpp index 6bf10fb46..86d2842ba 100644 --- a/include/boost/math/special_functions/lambert_w.hpp +++ b/include/boost/math/special_functions/lambert_w.hpp @@ -58,7 +58,6 @@ BOOST_MATH_INSTRUMENT_LAMBERT_W_SMALL_Z_SERIES_ITERATIONS // Show evaluation of #include // series functor. //#include // polynomial. #include // evaluate_polynomial. -#include #include // boost::math::tools::max_value(). #include #include @@ -1744,7 +1743,7 @@ T lambert_wm1_imp(const T z, const Policy& pol) // Integral types should be promoted to double by user Lambert w functions. // If integral type provided to user function lambert_w0 or lambert_wm1, // then should already have been promoted to double. - static_assert(!boost::is_integral::value, + static_assert(!std::is_integral::value, "Must be floating-point or fixed type (not integer type), for example: lambert_wm1(1.), not lambert_wm1(1)!"); BOOST_MATH_STD_USING // Aid argument dependent lookup (ADL) of abs. diff --git a/include/boost/math/special_functions/next.hpp b/include/boost/math/special_functions/next.hpp index b4532cec4..32f7988dc 100644 --- a/include/boost/math/special_functions/next.hpp +++ b/include/boost/math/special_functions/next.hpp @@ -9,16 +9,16 @@ #ifdef _MSC_VER #pragma once #endif -#include -#include + #include #include #include #include #include #include +#include +#include -#include #if !defined(_CRAYC) && !defined(__CUDACC__) && (!defined(__GNUC__) || (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 3))) #if (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) || defined(__SSE2__) @@ -684,18 +684,18 @@ inline typename tools::promote_args::type float_distance(const T& a, const // We allow ONE of a and b to be an integer type, otherwise both must be the SAME type. // static_assert( - (boost::is_same::value - || (boost::is_integral::value && !boost::is_integral::value) - || (!boost::is_integral::value && boost::is_integral::value) + (std::is_same::value + || (std::is_integral::value && !std::is_integral::value) + || (!std::is_integral::value && std::is_integral::value) || (std::numeric_limits::is_specialized && std::numeric_limits::is_specialized && (std::numeric_limits::digits == std::numeric_limits::digits) && (std::numeric_limits::radix == std::numeric_limits::radix) && !std::numeric_limits::is_integer && !std::numeric_limits::is_integer)), "Float distance between two different floating point types is undefined."); - BOOST_IF_CONSTEXPR (!boost::is_same::value) + BOOST_IF_CONSTEXPR (!std::is_same::value) { - BOOST_IF_CONSTEXPR(boost::is_integral::value) + BOOST_IF_CONSTEXPR(std::is_integral::value) { return float_distance(static_cast(a), b, pol); } diff --git a/include/boost/math/special_functions/trunc.hpp b/include/boost/math/special_functions/trunc.hpp index 401516430..b6c39af85 100644 --- a/include/boost/math/special_functions/trunc.hpp +++ b/include/boost/math/special_functions/trunc.hpp @@ -10,12 +10,11 @@ #pragma once #endif +#include #include #include #include #include -#include -#include namespace boost{ namespace math{ namespace detail{ @@ -123,7 +122,7 @@ inline typename std::enable_if::value, int>::type } template -inline typename boost::disable_if_c::value, int>::type +inline typename std::enable_if::value, int>::type iconvert(const T& v, const Policy& pol) { using boost::math::itrunc; @@ -138,7 +137,7 @@ inline typename std::enable_if::value, long>::typ } template -inline typename boost::disable_if_c::value, long>::type +inline typename std::enable_if::value, long>::type lconvert(const T& v, const Policy& pol) { using boost::math::ltrunc; @@ -155,7 +154,7 @@ inline typename std::enable_if:: } template -inline typename boost::disable_if_c::value, boost::long_long_type>::type +inline typename std::enable_if::value, boost::long_long_type>::type llconvertert(const T& v, const Policy& pol) { using boost::math::lltrunc; diff --git a/include/boost/math/tools/big_constant.hpp b/include/boost/math/tools/big_constant.hpp index 097bc4790..eeade5d59 100644 --- a/include/boost/math/tools/big_constant.hpp +++ b/include/boost/math/tools/big_constant.hpp @@ -11,9 +11,9 @@ #ifndef BOOST_MATH_NO_LEXICAL_CAST #include #endif -#include -#include -#include + +#include +#include namespace boost{ namespace math{ @@ -73,7 +73,7 @@ inline BOOST_MATH_CONSTEXPR T make_big_value(largest_float, const char* s, std:: BOOST_STRINGIZE(x), \ std::integral_constant::value) && \ ((D <= boost::math::tools::numeric_traits::digits) \ - || boost::is_floating_point::value \ + || std::is_floating_point::value \ || (boost::math::tools::numeric_traits::is_specialized && \ (boost::math::tools::numeric_traits::digits10 <= boost::math::tools::numeric_traits::digits10))) >(), \ std::is_constructible()) @@ -82,7 +82,7 @@ inline BOOST_MATH_CONSTEXPR T make_big_value(largest_float, const char* s, std:: // #define BOOST_MATH_HUGE_CONSTANT(T, D, x)\ boost::math::tools::make_big_value(0.0L, BOOST_STRINGIZE(x), \ - std::integral_constant::value || (boost::math::tools::numeric_traits::is_specialized && boost::math::tools::numeric_traits::max_exponent <= boost::math::tools::numeric_traits::max_exponent && boost::math::tools::numeric_traits::digits <= boost::math::tools::numeric_traits::digits)>(), \ + std::integral_constant::value || (boost::math::tools::numeric_traits::is_specialized && boost::math::tools::numeric_traits::max_exponent <= boost::math::tools::numeric_traits::max_exponent && boost::math::tools::numeric_traits::digits <= boost::math::tools::numeric_traits::digits)>(), \ std::is_constructible()) }}} // namespaces diff --git a/include/boost/math/tools/complex.hpp b/include/boost/math/tools/complex.hpp index 8bad37445..d462ca809 100644 --- a/include/boost/math/tools/complex.hpp +++ b/include/boost/math/tools/complex.hpp @@ -10,17 +10,31 @@ #ifndef BOOST_MATH_TOOLS_COMPLEX_HPP #define BOOST_MATH_TOOLS_COMPLEX_HPP -#include +#include +#include namespace boost { namespace math { namespace tools { - // - // Specialize this trait for user-defined complex types (ie Boost.Multiprecision): - // - template - struct is_complex_type : public boost::is_complex {}; + namespace detail { + template + struct is_complex_type_impl + { + static constexpr bool value = false; + }; + + template + struct is_complex_type_impl().real()), + decltype(std::declval().imag())>> + { + static constexpr bool value = true; + }; + } // Namespace detail + + template + struct is_complex_type : public detail::is_complex_type_impl {}; + // // Use this trait to typecast integer literals to something // that will interoperate with T: diff --git a/include/boost/math/tools/convert_from_string.hpp b/include/boost/math/tools/convert_from_string.hpp index edc2121ab..de670f520 100644 --- a/include/boost/math/tools/convert_from_string.hpp +++ b/include/boost/math/tools/convert_from_string.hpp @@ -10,8 +10,7 @@ #pragma once #endif -#include -#include +#include #include namespace boost{ namespace math{ namespace tools{ @@ -19,7 +18,7 @@ namespace boost{ namespace math{ namespace tools{ template struct convert_from_string_result { - typedef typename boost::conditional::value, const char*, T>::type type; + typedef typename std::conditional::value, const char*, T>::type type; }; template diff --git a/include/boost/math/tools/detail/is_const_iterable.hpp b/include/boost/math/tools/detail/is_const_iterable.hpp index 74d1a4758..0726ce90e 100644 --- a/include/boost/math/tools/detail/is_const_iterable.hpp +++ b/include/boost/math/tools/detail/is_const_iterable.hpp @@ -9,11 +9,11 @@ #include #include -#if !defined(BOOST_NO_CXX14_VARIABLE_TEMPLATES) && !defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_CXX11_SFINAE_EXPR) +#if !defined(BOOST_NO_CXX14_VARIABLE_TEMPLATES) #define BOOST_MATH_HAS_IS_CONST_ITERABLE -#include +#include #include namespace boost { @@ -31,9 +31,9 @@ namespace boost { template struct is_const_iterable : public std::integral_constant::value - && boost::is_detected::value - && boost::is_detected::value + is_detected::value + && is_detected::value + && is_detected::value > {}; } } } } diff --git a/include/boost/math/tools/polynomial.hpp b/include/boost/math/tools/polynomial.hpp index 050250012..9a5750bba 100644 --- a/include/boost/math/tools/polynomial.hpp +++ b/include/boost/math/tools/polynomial.hpp @@ -26,6 +26,7 @@ #include #include #include +#include namespace boost{ namespace math{ namespace tools{ @@ -122,7 +123,7 @@ namespace detail { * subtlety of distinction. */ template -BOOST_DEDUCED_TYPENAME disable_if_c::is_integer, void >::type +BOOST_DEDUCED_TYPENAME std::enable_if::is_integer, void >::type division_impl(polynomial &q, polynomial &u, const polynomial& v, N n, N k) { q[k] = u[n + k] / v[n]; @@ -165,7 +166,7 @@ T integer_power(T t, N n) * don't currently have that subtlety of distinction. */ template -BOOST_DEDUCED_TYPENAME enable_if_c::is_integer, void >::type +BOOST_DEDUCED_TYPENAME std::enable_if::is_integer, void >::type division_impl(polynomial &q, polynomial &u, const polynomial& v, N n, N k) { q[k] = u[n + k] * integer_power(v[n], k); diff --git a/include/boost/math/tools/polynomial_gcd.hpp b/include/boost/math/tools/polynomial_gcd.hpp index 436923589..aa131fb00 100644 --- a/include/boost/math/tools/polynomial_gcd.hpp +++ b/include/boost/math/tools/polynomial_gcd.hpp @@ -11,10 +11,10 @@ #pragma once #endif +#include +#include #include #include -#include - namespace boost{ @@ -114,7 +114,7 @@ namespace detail * @return Greatest common divisor of polynomials u and v. */ template -typename enable_if_c< std::numeric_limits::is_integer, polynomial >::type +typename std::enable_if< std::numeric_limits::is_integer, polynomial >::type subresultant_gcd(polynomial u, polynomial v) { using std::swap; @@ -167,14 +167,14 @@ subresultant_gcd(polynomial u, polynomial v) * @tparam T A multi-precision integral type. */ template -typename enable_if_c::is_integer && !std::numeric_limits::is_bounded, polynomial >::type +typename std::enable_if::is_integer && !std::numeric_limits::is_bounded, polynomial >::type gcd(polynomial const &u, polynomial const &v) { return subresultant_gcd(u, v); } // GCD over bounded integers is not currently allowed: template -typename enable_if_c::is_integer && std::numeric_limits::is_bounded, polynomial >::type +typename std::enable_if::is_integer && std::numeric_limits::is_bounded, polynomial >::type gcd(polynomial const &u, polynomial const &v) { static_assert(sizeof(v) == 0, "GCD on polynomials of bounded integers is disallowed due to the excessive growth in the size of intermediate terms."); @@ -182,7 +182,7 @@ gcd(polynomial const &u, polynomial const &v) } // GCD over polynomials of floats can go via the Euclid algorithm: template -typename enable_if_c::is_integer && (std::numeric_limits::min_exponent != std::numeric_limits::max_exponent) && !std::numeric_limits::is_exact, polynomial >::type +typename std::enable_if::is_integer && (std::numeric_limits::min_exponent != std::numeric_limits::max_exponent) && !std::numeric_limits::is_exact, polynomial >::type gcd(polynomial const &u, polynomial const &v) { return boost::integer::gcd_detail::Euclid_gcd(u, v); diff --git a/include/boost/math/tools/test_value.hpp b/include/boost/math/tools/test_value.hpp index 7d4af5d8b..f9948e1eb 100644 --- a/include/boost/math/tools/test_value.hpp +++ b/include/boost/math/tools/test_value.hpp @@ -28,8 +28,8 @@ #include // For float_64_t, float128_t. Must be first include! #include -#include -#include +#include +#include #ifdef BOOST_MATH_INSTRUMENT_CREATE_TEST_VALUE // global int create_type(0); must be defined before including this file. diff --git a/test/compile_test/dist_find_location_incl_test.cpp b/test/compile_test/dist_find_location_incl_test.cpp index 20aadba15..0e6d958cb 100644 --- a/test/compile_test/dist_find_location_incl_test.cpp +++ b/test/compile_test/dist_find_location_incl_test.cpp @@ -6,6 +6,7 @@ // Basic sanity check that header // #includes all the files that it needs to. // +#include #include // // Note this header includes no other headers, this is @@ -36,8 +37,8 @@ T quantile(const boost::math::complemented2_type, T namespace boost{ namespace math{ namespace tools{ - template struct is_distribution > : public true_type{}; - template struct is_scaled_distribution > : public true_type{}; + template struct is_distribution > : public std::true_type {}; + template struct is_scaled_distribution > : public std::true_type {}; }}} diff --git a/test/compile_test/dist_find_scale_incl_test.cpp b/test/compile_test/dist_find_scale_incl_test.cpp index 5481e210d..f7e2eea94 100644 --- a/test/compile_test/dist_find_scale_incl_test.cpp +++ b/test/compile_test/dist_find_scale_incl_test.cpp @@ -36,8 +36,8 @@ T quantile(const boost::math::complemented2_type, T namespace boost{ namespace math{ namespace tools{ - template struct is_distribution > : public true_type{}; - template struct is_scaled_distribution > : public true_type{}; + template struct is_distribution > : public std::true_type {}; + template struct is_scaled_distribution > : public std::true_type {}; }}}