Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2001-11-13 13:15:13


on 11/13/01 10:10 AM, sgregory_at_[hidden] at sgregory_at_[hidden] wrote:

> class Axis {
> bool AddTick(const double); // bool added for MS so as not to return void
> };
>
> Axis a;
> std::list<double> l;
>
> std::for_each(l.begin(), l.end(),
> boost::bind( &Raxis::AddTick, &a ) );

The correct syntax for this is:

    boost::bind( &Raxis::AddTick, &a, _1 )

    -- Darin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk