has_cxx17_cmath.cpp 424 B

123456789101112131415161718
  1. // Copyright John Maddock 2015.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <cmath>
  6. int main()
  7. {
  8. long double d = 1;
  9. d = std::erf(d);
  10. d = std::erfc(d);
  11. d = std::tgamma(d);
  12. d = std::lgamma(d);
  13. d = std::comp_ellint_1(d);
  14. return d != 0 ? 0 : 1;
  15. }