// (C) Copyright Matt Borland 2021. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include #include template void test() { constexpr bool test_val = boost::math::ccmath::isinf(T(0)); static_assert(!test_val, "Not constexpr"); BOOST_TEST(!test_val); BOOST_TEST(!boost::math::ccmath::isinf(std::numeric_limits::quiet_NaN())); BOOST_TEST(boost::math::ccmath::isinf(std::numeric_limits::infinity())); BOOST_TEST(std::exp(T(1000))); } int main() { test(); test(); #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS test(); #endif return boost::report_errors(); }