Commit 6a7508ec by Paolo Carlini Committed by Paolo Carlini

type_traits (is_pod): Use __is_pod.

2007-04-30  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (is_pod): Use __is_pod.
	* testsuite/tr1/4_metaprogramming/type_properties/
	has_trivial_destructor/has_trivial_destructor.cc: Adjust.
	* testsuite/tr1/4_metaprogramming/type_properties/
	has_nothrow_constructor/has_nothrow_constructor.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/type_properties/
	has_trivial_constructor/has_trivial_constructor.cc: Likewise.
	* testsuite/tr1/4_metaprogramming/type_properties/
	is_pod/is_pod.cc: Likewise.

From-SVN: r124294
parent 4be242bb
2007-04-30 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits (is_pod): Use __is_pod.
* testsuite/tr1/4_metaprogramming/type_properties/
has_trivial_destructor/has_trivial_destructor.cc: Adjust.
* testsuite/tr1/4_metaprogramming/type_properties/
has_nothrow_constructor/has_nothrow_constructor.cc: Likewise.
* testsuite/tr1/4_metaprogramming/type_properties/
has_trivial_constructor/has_trivial_constructor.cc: Likewise.
* testsuite/tr1/4_metaprogramming/type_properties/
is_pod/is_pod.cc: Likewise.
2007-04-29 Paolo Carlini <pcarlini@suse.de> 2007-04-29 Paolo Carlini <pcarlini@suse.de>
* include/bits/localefwd.h: Remove redundant inline qualifiers. * include/bits/localefwd.h: Remove redundant inline qualifiers.
......
...@@ -249,9 +249,7 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1) ...@@ -249,9 +249,7 @@ _GLIBCXX_BEGIN_NAMESPACE(_GLIBCXX_TR1)
template<typename _Tp> template<typename _Tp>
struct is_pod struct is_pod
: public integral_constant<bool, (is_void<_Tp>::value : public integral_constant<bool, __is_pod(_Tp) || is_void<_Tp>::value>
|| is_scalar<typename
remove_all_extents<_Tp>::type>::value)>
{ }; { };
template<typename _Tp> template<typename _Tp>
......
// 2004-12-29 Paolo Carlini <pcarlini@suse.de> // 2004-12-29 Paolo Carlini <pcarlini@suse.de>
// //
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -48,9 +48,7 @@ void test01() ...@@ -48,9 +48,7 @@ void test01()
int (ClassType::*[2][3])>(true)) ); int (ClassType::*[2][3])>(true)) );
VERIFY( (test_category<has_nothrow_constructor, VERIFY( (test_category<has_nothrow_constructor,
int (ClassType::*[][2][3]) (int)>(true)) ); int (ClassType::*[][2][3]) (int)>(true)) );
VERIFY( (test_category<has_nothrow_constructor, ClassType>(true)) );
// Sanity check.
VERIFY( (test_category<has_nothrow_constructor, ClassType>(false)) );
} }
int main() int main()
......
// 2004-12-26 Paolo Carlini <pcarlini@suse.de> // 2004-12-26 Paolo Carlini <pcarlini@suse.de>
// //
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -48,9 +48,7 @@ void test01() ...@@ -48,9 +48,7 @@ void test01()
int (ClassType::*[2][3])>(true)) ); int (ClassType::*[2][3])>(true)) );
VERIFY( (test_category<has_trivial_constructor, VERIFY( (test_category<has_trivial_constructor,
int (ClassType::*[][2][3]) (int)>(true)) ); int (ClassType::*[][2][3]) (int)>(true)) );
VERIFY( (test_category<has_trivial_constructor, ClassType>(true)) );
// Sanity check.
VERIFY( (test_category<has_trivial_constructor, ClassType>(false)) );
} }
int main() int main()
......
// 2004-12-26 Paolo Carlini <pcarlini@suse.de> // 2004-12-26 Paolo Carlini <pcarlini@suse.de>
// //
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -48,9 +48,7 @@ void test01() ...@@ -48,9 +48,7 @@ void test01()
int (ClassType::*[2][3])>(true)) ); int (ClassType::*[2][3])>(true)) );
VERIFY( (test_category<has_trivial_destructor, VERIFY( (test_category<has_trivial_destructor,
int (ClassType::*[][2][3]) (int)>(true)) ); int (ClassType::*[][2][3]) (int)>(true)) );
VERIFY( (test_category<has_trivial_destructor, ClassType>(true)) );
// Sanity check.
VERIFY( (test_category<has_trivial_destructor, ClassType>(false)) );
} }
int main() int main()
......
// 2004-12-26 Paolo Carlini <pcarlini@suse.de> // 2004-12-26 Paolo Carlini <pcarlini@suse.de>
// //
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -45,9 +45,7 @@ void test01() ...@@ -45,9 +45,7 @@ void test01()
VERIFY( (test_category<is_pod, int(*[][2])(int)>(true)) ); VERIFY( (test_category<is_pod, int(*[][2])(int)>(true)) );
VERIFY( (test_category<is_pod, int (ClassType::*[2][3])>(true)) ); VERIFY( (test_category<is_pod, int (ClassType::*[2][3])>(true)) );
VERIFY( (test_category<is_pod, int (ClassType::*[][2][3]) (int)>(true)) ); VERIFY( (test_category<is_pod, int (ClassType::*[][2][3]) (int)>(true)) );
VERIFY( (test_category<is_pod, ClassType>(true)) );
// Sanity check.
VERIFY( (test_category<is_pod, ClassType>(false)) );
} }
int main() int main()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment