From 6f20ac347a219ef84e43bfdc11c010a6e79adc7b Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 23 Jun 2011 10:32:23 +0000 Subject: [PATCH] tie2.cc: Fix for C++0x mode. 2011-06-23 Jonathan Wakely * testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc: Fix for C++0x mode. * testsuite/25_algorithms/sort/35588.cc: Likewise. * testsuite/26_numerics/headers/complex/synopsis.cc: Likewise. From-SVN: r175329 --- libstdc++-v3/ChangeLog | 7 +++++++ .../testsuite/25_algorithms/sort/35588.cc | 3 +-- .../26_numerics/headers/complex/synopsis.cc | 21 ++++++++++++------- .../tuple/creation_functions/tie2.cc | 2 +- 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 200c28653c9..d16aa1e3bc7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2011-06-23 Jonathan Wakely + + * testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc: Fix for + C++0x mode. + * testsuite/25_algorithms/sort/35588.cc: Likewise. + * testsuite/26_numerics/headers/complex/synopsis.cc: Likewise. + 2011-06-22 Jonathan Wakely * testsuite/20_util/bind/socket.cc: Use variable and remove attribute. diff --git a/libstdc++-v3/testsuite/25_algorithms/sort/35588.cc b/libstdc++-v3/testsuite/25_algorithms/sort/35588.cc index c16b96dfd7a..9dd28a5c4f9 100644 --- a/libstdc++-v3/testsuite/25_algorithms/sort/35588.cc +++ b/libstdc++-v3/testsuite/25_algorithms/sort/35588.cc @@ -23,9 +23,8 @@ int main() { using namespace std; - using namespace tr1; using namespace std::tr1::placeholders; int t[10]; - sort(t, t+10, bind(less(), _1, _2)); + sort(t, t+10, tr1::bind(less(), _1, _2)); } diff --git a/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc b/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc index 4d885930b45..ecdbee0d1c6 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc @@ -44,15 +44,20 @@ namespace std { template complex operator/(const T&, const complex&); template complex operator+(const complex&); template complex operator-(const complex&); - template bool operator== + template _GLIBCXX_CONSTEXPR bool operator== (const complex&, const complex&); - template bool operator==(const complex&, const T&); - template bool operator==(const T&, const complex&); + template _GLIBCXX_CONSTEXPR bool operator== + (const complex&, const T&); + template _GLIBCXX_CONSTEXPR bool operator== + (const T&, const complex&); - template bool operator!=(const complex&, const complex&); - template bool operator!=(const complex&, const T&); - template bool operator!=(const T&, const complex&); + template _GLIBCXX_CONSTEXPR bool operator!= + (const complex&, const complex&); + template _GLIBCXX_CONSTEXPR bool operator!= + (const complex&, const T&); + template _GLIBCXX_CONSTEXPR bool operator!= + (const T&, const complex&); template basic_istream& operator>>(basic_istream&, complex&); @@ -61,8 +66,8 @@ namespace std { operator<<(basic_ostream&, const complex&); // 26.2.7 values: - template T real(const complex&); - template T imag(const complex&); + template _GLIBCXX_CONSTEXPR T real(const complex&); + template _GLIBCXX_CONSTEXPR T imag(const complex&); template T abs(const complex&); template T arg(const complex&); template T norm(const complex&); diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc index 7aea51643fc..ea9df08f174 100644 --- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc +++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc @@ -30,7 +30,7 @@ main() int i; std::string s; - tie(i, ignore, s) = make_tuple(42, 3.14, "C++"); + std::tr1::tie(i, ignore, s) = make_tuple(42, 3.14, "C++"); VERIFY( i == 42 ); VERIFY( s == "C++" ); } -- 2.30.2