summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/ext
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-24 18:27:59 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-24 18:27:59 +0000
commit04ac122e34757475ea136bac33bcc0b2a695fb94 (patch)
tree1b0c00ad5ced098dcf7b024fac3d96bec9b63598 /libstdc++-v3/include/ext
parent473d3d50c842b519b3933c319cb4117bfe7bbddb (diff)
downloadppe42-gcc-04ac122e34757475ea136bac33bcc0b2a695fb94.tar.gz
ppe42-gcc-04ac122e34757475ea136bac33bcc0b2a695fb94.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199313 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/ext')
-rw-r--r--libstdc++-v3/include/ext/type_traits.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/include/ext/type_traits.h b/libstdc++-v3/include/ext/type_traits.h
index 7a840343fca..071ebddd536 100644
--- a/libstdc++-v3/include/ext/type_traits.h
+++ b/libstdc++-v3/include/ext/type_traits.h
@@ -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>
OpenPOWER on IntegriCloud