public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Deprecate std::__is_nullptr_t type trait
@ 2019-08-14 20:20 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2019-08-14 20:20 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

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.


[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 945 bytes --]

commit 8068073ad959c806a925b6c031965f6db6b70c90
Author: Jonathan Wakely <jwakely@redhat.com>
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<typename remove_cv<_Tp>::type>::type
     { };
 
-  /// __is_nullptr_t (extension).
+  /// __is_nullptr_t (deprecated extension).
   template<typename _Tp>
     struct __is_nullptr_t
     : public is_null_pointer<_Tp>
-    { };
+    { } _GLIBCXX_DEPRECATED;
 
   // Composite type categories.
 

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

only message in thread, other threads:[~2019-08-14 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14 20:20 [PATCH] Deprecate std::__is_nullptr_t type trait 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).