From patchwork Wed Aug 14 19:51:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1147190 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-506977-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="kdVsKecK"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4680bV0MBtz9sNF for ; Thu, 15 Aug 2019 05:52:03 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=bL3l85hWV1mosjNx7xj4kZQRET6QmbJ2RfofR08rTpldohI5zuN9L f8+c+cCB1+6tgrbO1z8aHLUAeAvhwtgnPscZ5oqL+koai5gDg5cpV2BTKjWM+64V FVNddXHeul7JwWz83I9zt4SSBZWQTolm4ERnxeMXKcTw+Ta0mVAPKg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=NxHBB4Tk5kWVQvse07V8QgvXEKA=; b=kdVsKecKgi+PrPB7H6b/ b/9yP/QYzEyVBOOX50G3Ot7JkK31fUFkiCw3eccZOiL/hPv1J+E0i04x6iMYkZIs WMTUF1YafXPrRMPE+KnO+5hu3INSZitQASCQczgeHQbmtD10S9n8RF7MBSasOjRu RMn0z9Vme9cilkAowHKFrA8= Received: (qmail 531 invoked by alias); 14 Aug 2019 19:51:56 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 357 invoked by uid 89); 14 Aug 2019 19:51:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1208 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Aug 2019 19:51:54 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7C8E530A00E2; Wed, 14 Aug 2019 19:51:53 +0000 (UTC) Received: from localhost (unknown [10.33.36.6]) by smtp.corp.redhat.com (Postfix) with ESMTP id 24E1D8378A; Wed, 14 Aug 2019 19:51:52 +0000 (UTC) Date: Wed, 14 Aug 2019 20:51:52 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH] Deprecate std::__is_nullptr_t type trait Message-ID: <20190814195152.GA16108@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.12.0 (2019-05-25) This non-standard extension is redundant and unused by the library. * include/std/type_traits (__is_nullptr_t): Add deprecated attribute. We support std::is_null_pointer so don't need a non-standard trait that does the same thing. Tested x86_64-linux, committed to trunk. commit 8068073ad959c806a925b6c031965f6db6b70c90 Author: Jonathan Wakely Date: Wed Aug 14 12:26:24 2019 +0100 Deprecate std::__is_nullptr_t type trait This non-standard extension is redundant and unused by the library. * include/std/type_traits (__is_nullptr_t): Add deprecated attribute. diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index b31c26ab381..d3f853d4ce2 100644 --- a/libstdc++-v3/include/std/type_traits +++ b/libstdc++-v3/include/std/type_traits @@ -597,11 +597,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : public __is_null_pointer_helper::type>::type { }; - /// __is_nullptr_t (extension). + /// __is_nullptr_t (deprecated extension). template struct __is_nullptr_t : public is_null_pointer<_Tp> - { }; + { } _GLIBCXX_DEPRECATED; // Composite type categories.