type_traits.h (__is_null_pointer): Add std::nullptr_t overload.
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 24 May 2013 18:27:59 +0000 (18:27 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 24 May 2013 18:27:59 +0000 (18:27 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/cpp_type_traits.h
libstdc++-v3/include/ext/type_traits.h

index 7607003546c688f8545472127d9ef8da96f15d2a..43ecc7bb90c775ced63abdd35a3662d50cd7145a 100644 (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,
index 6c03c9869d0845ed0e9a9f98f49b0e1a57639da5..02a18597be054fd5798d83c32d77fec60016b211 100644 (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
   // 
index 7a840343fcaef6f8dd0529b24eb020a5c452982b..071ebddd5363a1754ec9ed1d7abd3e2ab8e6b813 100644 (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>