summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/memory_resource
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-04-22 22:54:34 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-04-22 22:54:34 +0100
commit56772f623e2270f0c6bfaf64e0bb41d4b6085dc4 (patch)
tree2d90147dce28c246219cebd06d0df4d390a71b1d /libstdc++-v3/include/std/memory_resource
parent0d2dbae406c0c524436d9f818f4e06b3ff7eb964 (diff)
downloadgcc-56772f623e2270f0c6bfaf64e0bb41d4b6085dc4.tar.gz
libstdc++: Add missing feature test macros
These macros all correspond to features that are already supported, but the macro was not defined when the feature was implemented. * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory): Define to indicate P1006R1 support. (__cpp_lib_to_address): Define to indicate P0653R2 support. * include/bits/range_access.h (__cpp_lib_ssize): Define to indicate P1227R2 support. * include/bits/ranges_algo.h (__cpp_lib_shift): Define to indicate P0769R2 support. * include/std/atomic (__cpp_lib_atomic_float): Define to indicate P0020R6 support. * include/std/memory (__cpp_lib_assume_aligned): Define to indicate P1007R3 support. * include/std/memory_resource (__cpp_lib_polymorphic_allocator): Define to indicate P0339R6 support. * include/std/string_view (__cpp_lib_starts_ends_with): Define to indicate P0457R2 support. * include/std/type_traits (__cpp_lib_is_nothrow_convertible): Define to indicate P0758R1 support. (__cpp_lib_remove_cvref): Define to indicate P0550R2 support. (__cpp_lib_type_identity): Define to indicate P0887R1 support. * include/std/version (__cpp_lib_atomic_float) (__cpp_lib_is_nothrow_convertible, __cpp_lib_remove_cvref) (__cpp_lib_type_identity, __cpp_lib_assume_aligned) (__cpp_lib_constexpr_memory, __cpp_lib_polymorphic_allocator) (__cpp_lib_shift, __cpp_lib_ssize, __cpp_lib_starts_ends_with) (__cpp_lib_to_address): Define. * testsuite/20_util/to_address/1_neg.cc: Adjust dg-error line number.
Diffstat (limited to 'libstdc++-v3/include/std/memory_resource')
-rw-r--r--libstdc++-v3/include/std/memory_resource1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/memory_resource b/libstdc++-v3/include/std/memory_resource
index f87ef9688f3..514c9888e7a 100644
--- a/libstdc++-v3/include/std/memory_resource
+++ b/libstdc++-v3/include/std/memory_resource
@@ -61,6 +61,7 @@ namespace pmr
template<typename _Tp>
class polymorphic_allocator;
#else // C++20
+# define __cpp_lib_polymorphic_allocator 201902L
template<typename _Tp = std::byte>
class polymorphic_allocator;
#endif