Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-06-02 13:18:25


Mike Feldmeier wrote:

> void run_worker(worker& w, data& d)
> {
> boost::thread(boost::bind(&worker::run, &my_worker,
> _1)(boost:ref(my_data)));
> }

Change to

void run_worker(worker& w, data& d)
{
    boost::thread(
        boost::bind(&worker::run, &w, boost:ref(d))
    );
}


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