gcc 3.4 fixes.

[SVN r23845]
This commit is contained in:
Vladimir Prus
2004-07-20 15:16:22 +00:00
parent dd72943343
commit 3e19875b22
2 changed files with 11 additions and 2 deletions

View File

@ -15,6 +15,11 @@
#include <boost/test/test_tools.hpp> #include <boost/test/test_tools.hpp>
#include <iostream> #include <iostream>
// This should be included before "using namespace boost",
// otherwise gcc headers will be confused with boost::iterator
// namespace.
#include <boost/test/included/unit_test_framework.hpp>
using namespace boost; using namespace boost;
using namespace std; using namespace std;
@ -57,7 +62,7 @@ void check_array()
} }
#include <boost/test/included/unit_test_framework.hpp>
using boost::unit_test_framework::test_suite; using boost::unit_test_framework::test_suite;

View File

@ -15,6 +15,11 @@
#include <iostream> #include <iostream>
#include <string> #include <string>
// This should be included before "using namespace boost",
// otherwise gcc headers will be confused with boost::iterator
// namespace.
#include <boost/test/included/unit_test_framework.hpp>
using namespace boost; using namespace boost;
using namespace std; using namespace std;
@ -76,7 +81,6 @@ void check_iterator_range()
BOOST_CHECK( !equal( s2.begin(), s2.end(), res2.begin() ) ); BOOST_CHECK( !equal( s2.begin(), s2.end(), res2.begin() ) );
} }
#include <boost/test/included/unit_test_framework.hpp>
using boost::unit_test_framework::test_suite; using boost::unit_test_framework::test_suite;