public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-6797] libstdc++: Fix condition for __cpp_lib_shared_ptr_arrays Date: Fri, 21 Jan 2022 16:08:00 +0000 (GMT) [thread overview] Message-ID: <20220121160800.654043858C60@sourceware.org> (raw) 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
reply other threads:[~2022-01-21 16:08 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220121160800.654043858C60@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).