From d5b8603c8d5e4e1e93057f5d162f324fbd888ba1 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Thu, 8 Aug 2024 17:06:43 -0400 Subject: [PATCH] Fix ambiguous use of is_same --- test/pow_test.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/test/pow_test.cpp b/test/pow_test.cpp index 9180ccab5..24a1cd7f7 100644 --- a/test/pow_test.cpp +++ b/test/pow_test.cpp @@ -18,7 +18,6 @@ #include #include -#include #include #include @@ -103,15 +102,15 @@ void test_with_big_exponents() void test_return_types() { - static_assert((is_same('\1')), double>::value), "Return type mismatch"); - static_assert((is_same(L'\2')), double>::value), "Return type mismatch"); - static_assert((is_same(3)), double>::value), "Return type mismatch"); - static_assert((is_same(4u)), double>::value), "Return type mismatch"); - static_assert((is_same(5ul)), double>::value), "Return type mismatch"); - static_assert((is_same(6.0f)), float>::value), "Return type mismatch"); - static_assert((is_same(7.0)), double>::value), "Return type mismatch"); + static_assert((boost::math::is_same('\1')), double>::value), "Return type mismatch"); + static_assert((boost::math::is_same(L'\2')), double>::value), "Return type mismatch"); + static_assert((boost::math::is_same(3)), double>::value), "Return type mismatch"); + static_assert((boost::math::is_same(4u)), double>::value), "Return type mismatch"); + static_assert((boost::math::is_same(5ul)), double>::value), "Return type mismatch"); + static_assert((boost::math::is_same(6.0f)), float>::value), "Return type mismatch"); + static_assert((boost::math::is_same(7.0)), double>::value), "Return type mismatch"); #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS - static_assert((is_same(7.0l)), long double>::value), "Return type mismatch"); + static_assert((boost::math::is_same(7.0l)), long double>::value), "Return type mismatch"); #endif }