diff mbox series

Deprecate std::__is_nullptr_t type trait

Message ID 20190814195152.GA16108@redhat.com
State New
Headers show
Series Deprecate std::__is_nullptr_t type trait | expand

Commit Message

Jonathan Wakely Aug. 14, 2019, 7:51 p.m. UTC
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 <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 mbox series

Patch

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.