Given a
class:
class
Thing
{
...
DoIt(int x);
DoIt(std::string str);
}
Here is my
(incorrect) code for calling DoIt with every string in
myVec:
Thing
myThing;
std::vector
myVec;
std::for_each(myVec.begin(),
myVec.end(), boost::bind(&Thing::DoIt, &myThing, _1));
The sticking
point seems to be the overloaded DoIt. How do I clear up the
ambiguity?
(I'm using VC++
7)
TIA
Terence.