* include/ext/type_traits.h (__is_null_pointer): Add std::nullptr_t
overload.
* include/bits/cpp_type_traits.h (__is_fundamental): Remove, unused.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199313
138bc75d-0d04-0410-961f-
82ee72b054a4
+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,
{ };
//
- // 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
//
template<typename _Tp>
__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>