public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6797] libstdc++: Fix condition for __cpp_lib_shared_ptr_arrays
@ 2022-01-21 16:08 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-01-21 16:08 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:2da1ef06ff4bee961f51321dee9d0866c7ebb1cc

commit r12-6797-g2da1ef06ff4bee961f51321dee9d0866c7ebb1cc
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Jan 21 14:56:08 2022 +0000

    libstdc++: Fix condition for __cpp_lib_shared_ptr_arrays
    
    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.

Diff:
---
 libstdc++-v3/include/std/version | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version
index e3afe57c782..64759c9bf24 100644
--- a/libstdc++-v3/include/std/version
+++ b/libstdc++-v3/include/std/version
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-21 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-21 16:08 [gcc r12-6797] libstdc++: Fix condition for __cpp_lib_shared_ptr_arrays Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).