diff --git a/test/another_tuple_test_bench.cpp b/test/another_tuple_test_bench.cpp index 1d1e535..15074da 100644 --- a/test/another_tuple_test_bench.cpp +++ b/test/another_tuple_test_bench.cpp @@ -23,7 +23,6 @@ #include #include -using namespace std; using namespace boost; using namespace boost::tuples; diff --git a/test/io_test.cpp b/test/io_test.cpp index ea5460f..cf6dfb0 100644 --- a/test/io_test.cpp +++ b/test/io_test.cpp @@ -27,15 +27,14 @@ #include #endif -using namespace std; using namespace boost; #if defined BOOST_NO_STRINGSTREAM -typedef ostrstream useThisOStringStream; -typedef istrstream useThisIStringStream; +typedef std::ostrstream useThisOStringStream; +typedef std::istrstream useThisIStringStream; #else -typedef ostringstream useThisOStringStream; -typedef istringstream useThisIStringStream; +typedef std::ostringstream useThisOStringStream; +typedef std::istringstream useThisIStringStream; #endif int test_main(int argc, char * argv[] ) { @@ -79,19 +78,19 @@ int test_main(int argc, char * argv[] ) { os3 << make_tuple(); BOOST_CHECK (os3.str() == std::string("()[]") ); - ofstream tmp("temp.tmp"); + std::ofstream tmp("temp.tmp"); #if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) tmp << make_tuple("One", "Two", 3); #endif tmp << set_delimiter(':'); - tmp << make_tuple(1000, 2000, 3000) << endl; + tmp << make_tuple(1000, 2000, 3000) << std::endl; tmp.close(); // When teading tuples from a stream, manipulators must be set correctly: - ifstream tmp3("temp.tmp"); - tuple j; + std::ifstream tmp3("temp.tmp"); + tuple j; #if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) tmp3 >> j; diff --git a/test/tuple_test_bench.cpp b/test/tuple_test_bench.cpp index 134815f..eec9e1c 100644 --- a/test/tuple_test_bench.cpp +++ b/test/tuple_test_bench.cpp @@ -21,7 +21,6 @@ #include #include -using namespace std; using namespace boost; // ---------------------------------------------------------------------------- @@ -274,7 +273,7 @@ make_tuple_test() BOOST_CHECK(get<1>(t1) == 'a'); tuple t2; - t2 = make_tuple((short int)2, std::string("Hi")); + t2 = boost::make_tuple((short int)2, std::string("Hi")); BOOST_CHECK(get<0>(t2) == 2); BOOST_CHECK(get<1>(t2) == "Hi");