summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-27 15:08:57 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-27 15:08:57 +0000
commita2e0c99d53b5e387ebf7765a372be1dcf835dc4e (patch)
treee05f651080e22f39174810d14934dbd191cbc47e /libstdc++-v3/include
parent281baea1860d7905220684c93ab27bf875de07af (diff)
downloadgcc-a2e0c99d53b5e387ebf7765a372be1dcf835dc4e.tar.gz
2005-04-27 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits (has_trivial_copy, has_trivial_assign, has_nothrow_copy, has_nothrow_assign): Adjust according to the resolution of TR1 issue 3.21. * testsuite/testsuite_tr1.h (test_copy_property, test_assign_property): Remove. * testsuite/tr1/4_metaprogramming/type_properties/ has_nothrow_assign/has_nothrow_assign.cc: Adjust. * testsuite/tr1/4_metaprogramming/type_properties/ has_nothrow_copy/has_nothrow_copy.cc: Likewise. * testsuite/tr1/4_metaprogramming/type_properties/ has_trivial_assign/has_trivial_assign.cc: Likewise. * testsuite/tr1/4_metaprogramming/type_properties/ has_trivial_copy/has_trivial_copy.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98829 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/tr1/type_traits14
1 files changed, 4 insertions, 10 deletions
diff --git a/libstdc++-v3/include/tr1/type_traits b/libstdc++-v3/include/tr1/type_traits
index 55f585f9f4b..0bd05bb1198 100644
--- a/libstdc++-v3/include/tr1/type_traits
+++ b/libstdc++-v3/include/tr1/type_traits
@@ -366,14 +366,11 @@ namespace tr1
template<typename _Tp>
struct has_trivial_copy
- : public integral_constant<bool, (is_pod<_Tp>::value
- && !is_volatile<_Tp>::value)> { };
+ : public integral_constant<bool, is_pod<_Tp>::value> { };
template<typename _Tp>
struct has_trivial_assign
- : public integral_constant<bool, (is_pod<_Tp>::value
- && !is_const<_Tp>::value
- && !is_volatile<_Tp>::value)> { };
+ : public integral_constant<bool, is_pod<_Tp>::value> { };
template<typename _Tp>
struct has_trivial_destructor
@@ -385,14 +382,11 @@ namespace tr1
template<typename _Tp>
struct has_nothrow_copy
- : public integral_constant<bool, (is_pod<_Tp>::value
- && !is_volatile<_Tp>::value)> { };
+ : public integral_constant<bool, is_pod<_Tp>::value> { };
template<typename _Tp>
struct has_nothrow_assign
- : public integral_constant<bool, (is_pod<_Tp>::value
- && !is_const<_Tp>::value
- && !is_volatile<_Tp>::value)> { };
+ : public integral_constant<bool, is_pod<_Tp>::value> { };
template<typename>
struct has_virtual_destructor