From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 5E2353858405 for ; Tue, 24 Aug 2021 15:17:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5E2353858405 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-151-291smkivNTKidAowVtVwbg-1; Tue, 24 Aug 2021 11:17:02 -0400 X-MC-Unique: 291smkivNTKidAowVtVwbg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 480E787D546; Tue, 24 Aug 2021 15:17:01 +0000 (UTC) Received: from localhost (unknown [10.33.36.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id E5CD760C05; Tue, 24 Aug 2021 15:17:00 +0000 (UTC) Date: Tue, 24 Aug 2021 16:17:00 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: Jakub Jelinek Subject: Re: [committed] libstdc++: Add std::is_layout_compatible trait for C++20 Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="sYa/uXwRC/NfSz38" Content-Disposition: inline X-Spam-Status: No, score=-14.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2021 15:17:14 -0000 --sYa/uXwRC/NfSz38 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline On 24/08/21 16:13 +0100, Jonathan Wakely wrote: >Signed-off-by: Jonathan Wakely > >libstdc++-v3/ChangeLog: > > * include/std/type_traits (is_layout_compatible): Define. > (is_corresponding_member): Define. > * include/std/version (__cpp_lib_is_layout_compatible): Define. > * testsuite/20_util/is_layout_compatible/is_corresponding_member.cc: > New test. > * testsuite/20_util/is_layout_compatible/value.cc: New test. > * testsuite/20_util/is_layout_compatible/version.cc: New test. > * testsuite/20_util/is_pointer_interconvertible/with_class.cc: > New test. > * testsuite/23_containers/span/layout_compat.cc: Do not use real > std::is_layout_compatible trait if available. > And the doc patch, also pushed to trunk. --sYa/uXwRC/NfSz38 Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="patch.txt" commit 6d692ef43b2b3368c92c3fb757c7884fc94ee627 Author: Jonathan Wakely Date: Tue Aug 24 16:15:48 2021 libstdc++: Update C++20 status table for layout-compatibility traits Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * doc/xml/manual/status_cxx2020.xml: Update table. * doc/html/manual/status.html: Regenerate. diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2020.xml b/libstdc++-v3/doc/xml/manual/status_cxx2020.xml index a729ddd3ada..26c882907f3 100644 --- a/libstdc++-v3/doc/xml/manual/status_cxx2020.xml +++ b/libstdc++-v3/doc/xml/manual/status_cxx2020.xml @@ -294,13 +294,12 @@ or any notes about the implementation. - Layout-compatibility and pointer-interconvertibility traits P0466R5 - + 12 __cpp_lib_is_layout_compatible >= 201907L --sYa/uXwRC/NfSz38--