mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-13 14:33:45 +08:00
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:
parent
5bd93ff63e
commit
9797bec939
@ -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,
|
||||
|
@ -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
|
||||
//
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user