diff --git a/test/array.cpp b/test/array.cpp index 01d3489..181fddf 100755 --- a/test/array.cpp +++ b/test/array.cpp @@ -15,6 +15,11 @@ #include #include +// This should be included before "using namespace boost", +// otherwise gcc headers will be confused with boost::iterator +// namespace. +#include + using namespace boost; using namespace std; @@ -57,7 +62,7 @@ void check_array() } -#include + using boost::unit_test_framework::test_suite; diff --git a/test/iterator_range.cpp b/test/iterator_range.cpp index dfd6be0..79ec34a 100755 --- a/test/iterator_range.cpp +++ b/test/iterator_range.cpp @@ -15,6 +15,11 @@ #include #include +// This should be included before "using namespace boost", +// otherwise gcc headers will be confused with boost::iterator +// namespace. +#include + using namespace boost; using namespace std; @@ -76,7 +81,6 @@ void check_iterator_range() BOOST_CHECK( !equal( s2.begin(), s2.end(), res2.begin() ) ); } -#include using boost::unit_test_framework::test_suite;