]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix condition for __cpp_lib_shared_ptr_arrays
authorJonathan Wakely <jwakely@redhat.com>
Fri, 21 Jan 2022 14:56:08 +0000 (14:56 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 21 Jan 2022 16:07:33 +0000 (16:07 +0000)
I changed the preprocessor condition from <= to < in r12-6574 which
meant the macro was not defined by <version> for C++17.

libstdc++-v3/ChangeLog:

* include/std/version (__cpp_lib_shared_ptr_arrays): Fix
condition for C++17 definition.

libstdc++-v3/include/std/version

index e3afe57c7823a6f6bf872b2c9f73ce31063b35a6..64759c9bf244fd2e83edbf95430ff567eb418f84 100644 (file)
@@ -51,7 +51,7 @@
 
 #if _GLIBCXX_HOSTED
 # define __cpp_lib_allocator_traits_is_always_equal 201411
-#if __cplusplus < 201703L // N.B. updated value in C++20
+#if __cplusplus <= 201703L // N.B. updated value in C++20
 # define __cpp_lib_shared_ptr_arrays 201611L
 #endif
 #endif