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
This commit is contained in:
Jonathan Wakely 2019-08-14 20:52:06 +01:00 committed by Jonathan Wakely
parent 8a0eb0cd28
commit 07fd852ff1
2 changed files with 6 additions and 2 deletions

View 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.

View 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.