
2 Oct
2008
2 Oct
'08
10:12 a.m.
Hello, Here's an example of my problem: #include <algorithm> #include <vector> #include <boost/bind.hpp> class TheClass { }; void accept(TheClass& tc) { } int main() { std::vector<TheClass*> cont; // Compile error - how to dereference _1 ??? std::for_each(cont.begin(),cont.end(),boost::bind(&accept,_1)); } How can I dereference _1 so I can use the accept function? Regards, Pete