Commit ab44b018 by Paolo Carlini Committed by Paolo Carlini

testsuite_tr1.h: Add missing include; use std::__are_same.

2006-01-14  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/testsuite_tr1.h: Add missing include; use std::__are_same.

From-SVN: r109705
parent 9b61327b
2006-01-14 Paolo Carlini <pcarlini@suse.de> 2006-01-14 Paolo Carlini <pcarlini@suse.de>
* testsuite/testsuite_tr1.h: Add missing include; use std::__are_same.
2006-01-14 Paolo Carlini <pcarlini@suse.de>
* testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
Fix wrong test (don't pick by mistake the (const complex<>&, int) Fix wrong test (don't pick by mistake the (const complex<>&, int)
overload); add some. overload); add some.
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#ifndef _GLIBCXX_TESTSUITE_TR1_H #ifndef _GLIBCXX_TESTSUITE_TR1_H
#define _GLIBCXX_TESTSUITE_TR1_H #define _GLIBCXX_TESTSUITE_TR1_H
#include <bits/cpp_type_traits.h>
namespace __gnu_test namespace __gnu_test
{ {
// For tr1/type_traits. // For tr1/type_traits.
...@@ -167,7 +169,7 @@ namespace __gnu_test ...@@ -167,7 +169,7 @@ namespace __gnu_test
// For use in 8_c_compatibility. // For use in 8_c_compatibility.
template<typename R, typename T> template<typename R, typename T>
typename std::__enable_if<bool, std::tr1::is_same<R, T>::value>::__type typename std::__enable_if<bool, std::__are_same<R, T>::__value>::__type
check_ret_type(T) check_ret_type(T)
{ return true; } { return true; }
......
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