Index: constructor_tests.cpp =================================================================== --- constructor_tests.cpp (revision 52977) +++ constructor_tests.cpp (working copy) @@ -29,7 +29,6 @@ #endif using namespace boost::lambda; -using namespace std; template bool check_tuple(int n, const T& t) @@ -212,17 +211,17 @@ void test_news_and_deletes () { int* i[10]; - for_each(i, i+10, _1 = bind(new_ptr(), 2)); + std::for_each(i, i+10, _1 = bind(new_ptr(), 2)); int count_errors = 0; - for_each(i, i+10, (*_1 == 2) || ++var(count_errors)); + std::for_each(i, i+10, (*_1 == 2) || ++var(count_errors)); BOOST_CHECK(count_errors == 0); count_deletes* ct[10]; - for_each(ct, ct+10, _1 = bind(new_ptr())); + std::for_each(ct, ct+10, _1 = bind(new_ptr())); count_deletes::count = 0; - for_each(ct, ct+10, bind(delete_ptr(), _1)); + std::for_each(ct, ct+10, bind(delete_ptr(), _1)); BOOST_CHECK(count_deletes::count == 10); } @@ -240,16 +239,16 @@ void delayed_construction() { - vector x(3); - vector y(3); + std::vector x(3); + std::vector y(3); - fill(x.begin(), x.end(), 0); - fill(y.begin(), y.end(), 1); + std::fill(x.begin(), x.end(), 0); + std::fill(y.begin(), y.end(), 1); - vector > v; + std::vector > v; - transform(x.begin(), x.end(), y.begin(), back_inserter(v), - bind(constructor >(), _1, _2) ); + std::transform(x.begin(), x.end(), y.begin(), std::back_inserter(v), + bind(constructor >(), _1, _2) ); } int test_main(int, char *[]) {