Boost logo

Boost Users :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-08-27 09:27:13


On Aug 27, 2004, at 4:37 AM, Howard Cole wrote:
>
> myclass test_instance;
> boost::thread test_thread(test_instance);
> test_thread.join();

Just change the thread construction to use boost::ref:

boost::thread test_thread(boost::ref(test_instance));

        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