Boost logo

Boost Users :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-08-26 07:47:38


On Sunday 25 August 2002 11:20 am, stupid_newcomer wrote:
> // zero argument, OK
> for_each(v.begin(), v.end(), boost::mem_fn(&B::print0));
>
> // one argument, OK
> for_each(v.begin(), v.end(), boost::bind(&B::print1, _1, 5));
>
> // two argument, how to call B::print2 ?

for_each(v.begin(), v.end(), boost::bind(&B::print2, _1, 5, 6));

        Doug


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