I have this code:
std::set::iterator it; for (it = SERVER_IPS.begin(); it != SERVER_IPS.end(); ++it) { u_long f = it; // error here
Another example for the C++11 standard:
set data; data.insert(4); data.insert(5); for (const int &number : data) cout << number;