aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/execution
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-04-22 22:54:35 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-04-22 22:54:35 +0100
commitaac39307e8f589dba231083a3e9aa3d0ff302837 (patch)
tree986ab0f4118b041f2841d795c4cabb88244c15eb /libstdc++-v3/include/std/execution
parente851aa1703c3d911720d8f9bee68a521abe588f7 (diff)
downloadgcc-aac39307e8f589dba231083a3e9aa3d0ff302837.zip
gcc-aac39307e8f589dba231083a3e9aa3d0ff302837.tar.gz
gcc-aac39307e8f589dba231083a3e9aa3d0ff302837.tar.bz2
libstdc++: Define __cpp_lib_execution feature test macro
This macro has never been defined by libstdc++, despite supporting the parallel algorithms. It should have a different value for C++17 and C++20, because P1001R2 should not be supported in C++17, but unsequenced_policy is defined for C++17 (see PR p4702). * include/std/execution (__cpp_lib_execution): Define to indicate support for P0024R2 and P1001R2. * include/std/version (__cpp_lib_execution): Define. * testsuite/25_algorithms/pstl/feature_test.cc: Only test macro defined by <algorithm>, move other tests to new tests ... * testsuite/25_algorithms/pstl/feature_test-2.cc: New test. * testsuite/25_algorithms/pstl/feature_test-3.cc: New test. * testsuite/25_algorithms/pstl/feature_test-4.cc: New test. * testsuite/25_algorithms/pstl/feature_test-5.cc: New test.
Diffstat (limited to 'libstdc++-v3/include/std/execution')
-rw-r--r--libstdc++-v3/include/std/execution1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/execution b/libstdc++-v3/include/std/execution
index ac78af8..cdd852d 100644
--- a/libstdc++-v3/include/std/execution
+++ b/libstdc++-v3/include/std/execution
@@ -50,6 +50,7 @@
// Feature test macro for parallel algorithms
# define __cpp_lib_parallel_algorithm 201603L
+# define __cpp_lib_execution 201902L
#endif // C++17