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
+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,
: 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
//
__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>