type_traits.h (__is_null_pointer): Add std::nullptr_t overload.

2013-05-24  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/ext/type_traits.h (__is_null_pointer): Add std::nullptr_t
	overload.

	* include/bits/cpp_type_traits.h (__is_fundamental): Remove, unused.

From-SVN: r199313
This commit is contained in:
Paolo Carlini 2013-05-24 18:27:59 +00:00 committed by Paolo Carlini
parent 5bd93ff63e
commit 9797bec939
3 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2013-05-24 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/type_traits.h (__is_null_pointer): Add std::nullptr_t
overload.
* include/bits/cpp_type_traits.h (__is_fundamental): Remove, unused.
2013-05-24 Jakub Jelinek <jakub@redhat.com>
* src/c++11/chrono.cc: If _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL,

View File

@ -326,14 +326,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
: public __traitor<__is_integer<_Tp>, __is_floating<_Tp> >
{ };
//
// A fundamental type is `void' or and arithmetic type
//
template<typename _Tp>
struct __is_fundamental
: public __traitor<__is_void<_Tp>, __is_arithmetic<_Tp> >
{ };
//
// A scalar type is an arithmetic type or a pointer type
//

View File

@ -155,6 +155,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__is_null_pointer(_Type)
{ return false; }
#if __cplusplus >= 201103L
inline bool
__is_null_pointer(std::nullptr_t)
{ return true; }
#endif
// For complex and cmath
template<typename _Tp, bool = std::__is_integer<_Tp>::__value>