From: Jonathan Wakely Date: Wed, 14 Aug 2019 19:52:06 +0000 (+0100) Subject: Deprecate std::__is_nullptr_t type trait X-Git-Tag: misc/cutover-git~3374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07fd852ff115a133d7ddc27a430435126f111234;p=thirdparty%2Fgcc.git 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. From-SVN: r274491 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d9908b6d8fd9..2aaf4a5d8cc7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2019-08-14 Jonathan Wakely + + * 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. diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index b31c26ab381e..d3f853d4ce2d 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.