Boost logo

Boost :

Subject: Re: [boost] To create a boost thread
From: Remko Tronçon (remko_at_[hidden])
Date: 2009-03-12 12:08:09


> MyClass::myFunction() {
> boost::thread thrd(&hello);

What you probably mean is
   boost::thread thrd(boost::bind(&MyClass::hello, this));
(i.e. saying that you want to call the hello function for 'this' object).

cheers,
Remko


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