Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
and the following gives an error
BOOST_FOREACH(double x, myVec) x = 10.0;
so that I need to use
BOOST_FOREACH(pair<int,double> y, myMap) cout << y.first << "\t" << y.second << endl;
pair<int,double> y; BOOST_FOREACH(y, myMap) cout << y.first << "\t" << y.second << endl;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.