aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorDouglas Gregor <doug.gregor@gmail.com>2007-07-12 14:33:38 +0000
committerDoug Gregor <dgregor@gcc.gnu.org>2007-07-12 14:33:38 +0000
commit2df6377e6e01046582d489ae59b5be1371b42d59 (patch)
tree01d8a0d8af2ddcbdb69396c48ad51272baf7a4e5 /libstdc++-v3
parentd566f2e60064bc9fc85898d7937b430eebf969b4 (diff)
downloadgcc-2df6377e6e01046582d489ae59b5be1371b42d59.zip
gcc-2df6377e6e01046582d489ae59b5be1371b42d59.tar.gz
gcc-2df6377e6e01046582d489ae59b5be1371b42d59.tar.bz2
all_bound.cc: Disambiguate uses of TR1/C++0x facilities.
2007-07-12 Douglas Gregor <doug.gregor@gmail.com> * testsuite/tr1/3_function_objects/bind/all_bound.cc: Disambiguate uses of TR1/C++0x facilities. * testsuite/tr1/3_function_objects/bind/nested.cc: Ditto. * testsuite/tr1/3_function_objects/bind/placeholders.cc: Ditto. * testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc: Ditto. * testsuite/tr1/6_containers/unordered_multimap/swap/1.cc: Ditto. * testsuite/tr1/6_containers/unordered_multimap/swap/2.cc: Ditto. * testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc: Ditto. * testsuite/tr1/6_containers/unordered_set/swap/1.cc: Ditto. * testsuite/tr1/6_containers/unordered_set/swap/2.cc: Ditto. * testsuite/tr1/6_containers/utility/pair.cc: Ditto. * testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc: Ditto. * testsuite/tr1/6_containers/unordered_map/24064.cc: Ditto. * testsuite/tr1/6_containers/unordered_map/swap/1.cc: Ditto. * testsuite/tr1/6_containers/unordered_map/swap/2.cc: Ditto. * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: Ditto. * testsuite/tr1/6_containers/tuple/cons/constructor.cc: Ditto. * testsuite/tr1/6_containers/tuple/cons/assignment.cc: Ditto. * testsuite/tr1/6_containers/tuple/tuple_element.cc: Ditto. * testsuite/tr1/6_containers/tuple/tuple_size.cc: Ditto. * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc: Ditto. * testsuite/tr1/6_containers/tuple/element_access/get.cc: Ditto. * testsuite/tr1/6_containers/tuple/creation_functions/23978.cc: Ditto. * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: Ditto. * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: Ditto. * testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc: Ditto. * testsuite/tr1/6_containers/unordered_multiset/swap/1.cc: Ditto. * testsuite/tr1/6_containers/unordered_multiset/swap/2.cc: Ditto. From-SVN: r126590
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog36
-rw-r--r--libstdc++-v3/testsuite/tr1/3_function_objects/bind/all_bound.cc10
-rw-r--r--libstdc++-v3/testsuite/tr1/3_function_objects/bind/nested.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/3_function_objects/bind/placeholders.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/assignment.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc4
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc4
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/23978.cc4
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/element_access/get.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_element.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_size.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_map/24064.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/1.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/2.cc6
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/1.cc7
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/2.cc7
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/1.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/2.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc3
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/1.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/2.cc5
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc4
28 files changed, 105 insertions, 56 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 3da1130..8daf74a 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,39 @@
+2007-07-12 Douglas Gregor <doug.gregor@gmail.com>
+
+ * testsuite/tr1/3_function_objects/bind/all_bound.cc: Disambiguate uses of
+ TR1/C++0x facilities.
+ * testsuite/tr1/3_function_objects/bind/nested.cc: Ditto.
+ * testsuite/tr1/3_function_objects/bind/placeholders.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc:
+ Ditto.
+ * testsuite/tr1/6_containers/unordered_multimap/swap/1.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_multimap/swap/2.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc:
+ Ditto.
+ * testsuite/tr1/6_containers/unordered_set/swap/1.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_set/swap/2.cc: Ditto.
+ * testsuite/tr1/6_containers/utility/pair.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc:
+ Ditto.
+ * testsuite/tr1/6_containers/unordered_map/24064.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_map/swap/1.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_map/swap/2.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/cons/constructor.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/cons/assignment.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/tuple_element.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/tuple_size.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
+ Ditto.
+ * testsuite/tr1/6_containers/tuple/element_access/get.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/creation_functions/23978.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: Ditto.
+ * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc:
+ Ditto.
+ * testsuite/tr1/6_containers/unordered_multiset/swap/1.cc: Ditto.
+ * testsuite/tr1/6_containers/unordered_multiset/swap/2.cc: Ditto.
+
2007-07-10 Bob Wilson <bob.wilson@acm.org>
* configure.ac: Check if $atomicity_dir is cpu/generic/atomicity_mutex
diff --git a/libstdc++-v3/testsuite/tr1/3_function_objects/bind/all_bound.cc b/libstdc++-v3/testsuite/tr1/3_function_objects/bind/all_bound.cc
index 9d973cf..20c6d7a 100644
--- a/libstdc++-v3/testsuite/tr1/3_function_objects/bind/all_bound.cc
+++ b/libstdc++-v3/testsuite/tr1/3_function_objects/bind/all_bound.cc
@@ -30,12 +30,10 @@ bool test __attribute__((unused)) = true;
// Operations on empty function<> objects
void test01()
{
- using std::tr1::bind;
-
- VERIFY( bind(std::plus<int>(), 3, 5)() == 8 );
- VERIFY( bind(std::minus<int>(), 3, 5)() == -2 );
- VERIFY( bind<int>(std::plus<int>(), 3, 5)() == 8 );
- VERIFY( bind<int>(std::minus<int>(), 3, 5)() == -2 );
+ VERIFY( std::tr1::bind(std::plus<int>(), 3, 5)() == 8 );
+ VERIFY( std::tr1::bind(std::minus<int>(), 3, 5)() == -2 );
+ VERIFY( std::tr1::bind<int>(std::plus<int>(), 3, 5)() == 8 );
+ VERIFY( std::tr1::bind<int>(std::minus<int>(), 3, 5)() == -2 );
}
int main()
diff --git a/libstdc++-v3/testsuite/tr1/3_function_objects/bind/nested.cc b/libstdc++-v3/testsuite/tr1/3_function_objects/bind/nested.cc
index 15b890c..a5db8b3 100644
--- a/libstdc++-v3/testsuite/tr1/3_function_objects/bind/nested.cc
+++ b/libstdc++-v3/testsuite/tr1/3_function_objects/bind/nested.cc
@@ -30,13 +30,12 @@ bool test __attribute__((unused)) = true;
// Operations on empty function<> objects
void test01()
{
- using std::tr1::bind;
using namespace std::tr1::placeholders;
int five = 5;
int seven = 7;
- VERIFY( bind(std::multiplies<int>(), _1, bind(std::minus<int>(), 6, _2))(five, seven) == -5 );
- VERIFY( bind(std::multiplies<int>(), _1, bind(std::minus<int>(), 6, _2))(seven, five) == 7 );
+ VERIFY( std::tr1::bind(std::multiplies<int>(), _1, std::tr1::bind(std::minus<int>(), 6, _2))(five, seven) == -5 );
+ VERIFY( std::tr1::bind(std::multiplies<int>(), _1, std::tr1::bind(std::minus<int>(), 6, _2))(seven, five) == 7 );
}
int main()
diff --git a/libstdc++-v3/testsuite/tr1/3_function_objects/bind/placeholders.cc b/libstdc++-v3/testsuite/tr1/3_function_objects/bind/placeholders.cc
index 53e021a..1d07a79 100644
--- a/libstdc++-v3/testsuite/tr1/3_function_objects/bind/placeholders.cc
+++ b/libstdc++-v3/testsuite/tr1/3_function_objects/bind/placeholders.cc
@@ -30,13 +30,12 @@ bool test __attribute__((unused)) = true;
// Operations on empty function<> objects
void test01()
{
- using std::tr1::bind;
using namespace std::tr1::placeholders;
int five = 5;
int seven = 7;
- VERIFY( bind(std::minus<int>(), _1, _2)(five, seven) == -2 );
- VERIFY( bind(std::minus<int>(), _2, _1)(five, seven) == 2 );
+ VERIFY( std::tr1::bind(std::minus<int>(), _1, _2)(five, seven) == -2 );
+ VERIFY( std::tr1::bind(std::minus<int>(), _2, _1)(five, seven) == 2 );
}
int main()
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc
index 2b8e231..f22d975 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc
@@ -23,8 +23,7 @@
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
#define TEST1(x) VERIFY( x == x && !(x != x) && x <= x && !(x < x) )
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/assignment.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/assignment.cc
index c145191..6207b41 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/assignment.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/assignment.cc
@@ -23,8 +23,7 @@
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc
index de2784a..a23ad8d 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/big_tuples.cc
@@ -23,8 +23,8 @@
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
+using std::pair;
// A simple class without conversions to check some things
struct foo
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc
index a869ac3..89e9a11 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/cons/constructor.cc
@@ -23,8 +23,8 @@
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
+using std::pair;
int
main()
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/23978.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/23978.cc
index 2c94f33..70a2cf8 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/23978.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/23978.cc
@@ -24,8 +24,8 @@
#include <tr1/utility>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
+using std::pair;
// libstdc++/23978
void test01()
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc
index a599b7e..ca69be2 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc
@@ -24,8 +24,7 @@
#include <tr1/functional>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie.cc
index c3c40e5..ea63a5d 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/creation_functions/tie.cc
@@ -23,8 +23,7 @@
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/element_access/get.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/element_access/get.cc
index 7970d1f..85ec6cb 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/element_access/get.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/element_access/get.cc
@@ -23,8 +23,7 @@
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_element.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_element.cc
index 53bc46d..44a9317 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_element.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_element.cc
@@ -23,8 +23,7 @@
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
struct foo
{ };
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_size.cc b/libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_size.cc
index b868b35..967cb43 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_size.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/tuple/tuple_size.cc
@@ -23,8 +23,7 @@
#include <tr1/tuple>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
int
main()
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/24064.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/24064.cc
index aaacb70..b9f9bd2 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/24064.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/24064.cc
@@ -26,8 +26,10 @@ void test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::allocator;
+ using std::pair;
+ using std::equal_to;
__unordered_map<int, char, hash<int>, equal_to<int>,
allocator<pair<const int, char> >, true> m;
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc
index 8fb0b9f..865ca37b 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/explicit_instantiation.cc
@@ -25,8 +25,11 @@
#include <string>
#include <tr1/unordered_map>
-using namespace std;
using namespace std::tr1;
+using std::string;
+using std::allocator;
+using std::pair;
+using std::equal_to;
template class unordered_map<string, float>;
template class unordered_map<string, int,
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/1.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/1.cc
index d379774..3533aab 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/1.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/1.cc
@@ -30,8 +30,10 @@ void
test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::pair;
+ using std::equal_to;
+ using std::map;
typedef pair<const char, int> my_pair;
typedef __gnu_test::uneq_allocator<my_pair> my_alloc;
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/2.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/2.cc
index 8d70829..acd742e 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/2.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/swap/2.cc
@@ -30,8 +30,10 @@ void
test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::pair;
+ using std::equal_to;
+ using std::map;
typedef pair<const char, int> my_pair;
typedef __gnu_test::uneq_allocator<my_pair> my_alloc;
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc
index 5433e0e..0bfec76 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/requirements/explicit_instantiation.cc
@@ -25,8 +25,11 @@
#include <string>
#include <tr1/unordered_map>
-using namespace std;
using namespace std::tr1;
+using std::string;
+using std::equal_to;
+using std::allocator;
+using std::pair;
template class unordered_multimap<string, float>;
template class unordered_multimap<string, int,
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/1.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/1.cc
index 7648e08..2fd0cab 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/1.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/1.cc
@@ -30,8 +30,11 @@ void
test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::pair;
+ using std::equal_to;
+ using std::map;
+ using std::multimap;
typedef pair<const char, int> my_pair;
typedef __gnu_test::uneq_allocator<my_pair> my_alloc;
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/2.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/2.cc
index f7744eb..249cc56 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/2.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/swap/2.cc
@@ -30,8 +30,11 @@ void
test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::pair;
+ using std::equal_to;
+ using std::map;
+ using std::multimap;
typedef pair<const char, int> my_pair;
typedef __gnu_test::uneq_allocator<my_pair> my_alloc;
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc
index 4389e1b..13d20fa 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/requirements/explicit_instantiation.cc
@@ -24,8 +24,9 @@
#include <tr1/unordered_set>
-using namespace std;
using namespace std::tr1;
+using std::equal_to;
+using std::allocator;
template class unordered_multiset<int>;
template class unordered_multiset<float, hash<float>, equal_to<float>,
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/1.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/1.cc
index ca0194e..a19ddd6 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/1.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/1.cc
@@ -30,8 +30,9 @@ void
test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::equal_to;
+ using std::multiset;
typedef __gnu_test::uneq_allocator<char> my_alloc;
typedef unordered_multiset<char, hash<char>, equal_to<char>, my_alloc>
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/2.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/2.cc
index a95ddd5..5da6e28 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/2.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/swap/2.cc
@@ -30,8 +30,9 @@ void
test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::equal_to;
+ using std::multiset;
typedef __gnu_test::uneq_allocator<char> my_alloc;
typedef unordered_multiset<char, hash<char>, equal_to<char>, my_alloc>
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc
index a006abf..503e27a 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/requirements/explicit_instantiation.cc
@@ -24,8 +24,9 @@
#include <tr1/unordered_set>
-using namespace std;
using namespace std::tr1;
+using std::equal_to;
+using std::allocator;
template class unordered_set<int>;
template class unordered_set<float, hash<float>, equal_to<float>,
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/1.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/1.cc
index 1928c9e..23d6f45 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/1.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/1.cc
@@ -30,8 +30,9 @@ void
test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::equal_to;
+ using std::set;
typedef __gnu_test::uneq_allocator<char> my_alloc;
typedef unordered_set<char, hash<char>, equal_to<char>, my_alloc> my_uset;
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/2.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/2.cc
index 46e859c..dbcc31c 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/2.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/swap/2.cc
@@ -30,8 +30,9 @@ void
test01()
{
bool test __attribute__((unused)) = true;
- using namespace std;
- using namespace tr1;
+ using namespace std::tr1;
+ using std::equal_to;
+ using std::set;
typedef __gnu_test::uneq_allocator<char> my_alloc;
typedef unordered_set<char, hash<char>, equal_to<char>, my_alloc> my_uset;
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc b/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc
index c05665c..fc4ce78 100644
--- a/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc
+++ b/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc
@@ -23,8 +23,8 @@
#include <tr1/utility>
#include <testsuite_hooks.h>
-using namespace std;
-using namespace tr1;
+using namespace std::tr1;
+using std::pair;
struct blank_class
{ };