Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-02-16 16:40:59


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net