From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2136) id 6037C3954407; Wed, 17 Jun 2020 18:56:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6037C3954407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592420200; bh=r9RimUMFBtajW7pjdlMsXLJ0YHfF2a5V+BS6mI2Pgvk=; h=From:To:Subject:Date:From; b=RS9or9rf4Xtb1FwgkmDLoje/TX+ui1IHJTGmP4AvSjjubq0OtYf0QEhMaxu5DoGcV y3tD2809pnB6F1l0J9NnrGrYifguvzj9PmvlCXtKK6YZAU2Hv2u1nlDkPDTD2Raj6I kwdfGm2nbnOcjp49tGMXFJHH8mgcq9/CWLQ1RPxc= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Aldy Hernandez To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc/devel/ranger] libstdc++: Add comment to explaining C++14 status X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/devel/ranger X-Git-Oldrev: 9cd4eeefcc641dd70d026e08e9d218101b826c52 X-Git-Newrev: cfbc8fbb37e7b406ab2567ac35629793d4b499e7 Message-Id: <20200617185640.6037C3954407@sourceware.org> Date: Wed, 17 Jun 2020 18:56:40 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2020 18:56:40 -0000 https://gcc.gnu.org/g:cfbc8fbb37e7b406ab2567ac35629793d4b499e7 commit cfbc8fbb37e7b406ab2567ac35629793d4b499e7 Author: Jonathan Wakely Date: Mon Feb 17 15:44:03 2020 +0000 libstdc++: Add comment to explaining C++14 status This header is intentionally valid in C++14 mode, because no conforming C++14 program will try to include and so it's OK to add new (non-reserved in C++14) names to namespace std. However, other headers must not include transitively prior to C++17, so that we don't add those non-reserved names without the user requesting it. This adds a comment to the header explaining that. * include/std/charconv: Add comment. Diff: --- libstdc++-v3/ChangeLog | 2 ++ libstdc++-v3/include/std/charconv | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f4477aaa6f2..4556f17f7b7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2020-02-17 Jonathan Wakely + * include/std/charconv: Add comment. + PR libstdc++/92546 (partial) * include/bits/random.h (uniform_random_bit_generator): Move definition to . diff --git a/libstdc++-v3/include/std/charconv b/libstdc++-v3/include/std/charconv index 9b5a1f7cab8..ff7dfa12268 100644 --- a/libstdc++-v3/include/std/charconv +++ b/libstdc++-v3/include/std/charconv @@ -31,6 +31,10 @@ #pragma GCC system_header +// As an extension we support in C++14, but this header should not +// be included by any other library headers in C++14 mode. This ensures that +// the names defined in this header are not added to namespace std unless a +// user explicitly includes in C++14 code. #if __cplusplus >= 201402L #include