
16 Feb
2006
16 Feb
'06
9:40 p.m.
Meryl Silverburgh wrote:
Thanks. One more question, why the function 'doStuff' has to be 'public' otherwise, it won't compile? In my example, aFunction is a member function of 'A', so I can put 'doStuff' as private, right? but that won't compile.
for_each( aVector.begin(), aVector.end(), bind( &A::doStuff, this, _1, param1, param2 ) );
Can someone please tell me why?
Your compiler is broken? :-) It works under MSVC 7.1, g++ 3.4.4 and Comeau 4.3.0.1.