From 606dda21c8bcd4c2574e5b28f8125f01e38955c6 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 3 Oct 2016 18:01:10 +0100 Subject: Define std::gcd and std::lcm for C++17 * doc/xml/manual/status_cxx2017.xml: Update gcd/lcm status. * doc/html/*: Regenerate. * include/experimental/numeric (__abs): Move to . (gcd, lcm): Use __detail::gcd and __detail::lcm. * include/std/numeric (__detail::__abs_integral) (__detail::__gcd, __detail::__lcm): Define. (gcd, lcm): Define for C++17. * testsuite/26_numerics/gcd/1.cc: New test. * testsuite/26_numerics/lcm/1.cc: New test. * testsuite/experimental/numeric/gcd.cc: Swap contents with ... * testsuite/experimental/numeric/lcd.cc: ... this. From-SVN: r240723 --- libstdc++-v3/doc/html/manual/status.html | 4 ++-- libstdc++-v3/doc/xml/manual/status_cxx2017.xml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'libstdc++-v3/doc') diff --git a/libstdc++-v3/doc/html/manual/status.html b/libstdc++-v3/doc/html/manual/status.html index ecc93a9..a0a68b1 100644 --- a/libstdc++-v3/doc/html/manual/status.html +++ b/libstdc++-v3/doc/html/manual/status.html @@ -687,11 +687,11 @@ Feature-testing recommendations for C++. P0025R0 - 7 __cpp_lib_clamp >= 201603 Adopt Selected Library Fundamentals V2 Components for C++17 + 7 __cpp_lib_clamp >= 201603 Adopt Selected Library Fundamentals V2 Components for C++17 P0295R0 - No __cpp_lib_gcd >= 201606 , + 7 __cpp_lib_gcd >= 201606 , __cpp_lib_lcm >= 201606 Proposal to Introduce a 3-Argument Overload to std::hypot diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2017.xml b/libstdc++-v3/doc/xml/manual/status_cxx2017.xml index feed085..9f47b349 100644 --- a/libstdc++-v3/doc/xml/manual/status_cxx2017.xml +++ b/libstdc++-v3/doc/xml/manual/status_cxx2017.xml @@ -615,14 +615,13 @@ Feature-testing recommendations for C++. - Adopt Selected Library Fundamentals V2 Components for C++17 P0295R0 - No + 7 __cpp_lib_gcd >= 201606 , __cpp_lib_lcm >= 201606 -- cgit v1.1