Boost logo

Boost Users :

Subject: [Boost-users] zip_iterator.hpp / boost::tuple requires a using namespace std!
From: mark pashley (mark.pashley_at_[hidden])
Date: 2012-02-29 13:17:43


I have been using zip iterators with a BOOST::Test to check that maps
contain expected values.

After moving some templated code to a header file I found that the code
would not compie unless I place a *'using namespace std;' * declaration
within one of functions.

The compiler is gcc 4.6.2 and 4.4.2.
The version of boost is 1.47 and 1.49

The minimum code snippet is as follows:
* using namespace std; // without this the next line does not

The error from gcc is:

View this message in context:
Sent from the Boost - Users mailing list archive at

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at