#include #include void foo() { typedef std::map< int, int > M; M m_; M::const_iterator i = boost::next( m_.begin(), 0 ); }