]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Deprecate std::__is_nullptr_t type trait
authorJonathan Wakely <jwakely@redhat.com>
Wed, 14 Aug 2019 19:52:06 +0000 (20:52 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 14 Aug 2019 19:52:06 +0000 (20:52 +0100)
This non-standard extension is redundant and unused by the library.

* include/std/type_traits (__is_nullptr_t): Add deprecated attribute.

From-SVN: r274491

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits

index d9908b6d8fd950960ef6a518721ad237bec59524..2aaf4a5d8cc72026b3e1284afb5fa9c10ee63d9e 100644 (file)
@@ -1,3 +1,7 @@
+2019-08-14  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/std/type_traits (__is_nullptr_t): Add deprecated attribute.
+
 2019-08-14  Edward Smith-Rowland  <3dw4rd@verizon.net>
 
        Implement C++20 p0879 - Constexpr for swap and swap related functions.
index b31c26ab381e7f3c32bc2696e7cb759c70441ad8..d3f853d4ce2dd7991a8be41859923c6418544038 100644 (file)
@@ -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.