23 Aug
2008
23 Aug
'08
10:42 p.m.
Hi, Here's the error I get after the code modifications: 'bind' : is not a member of 'boost' I'm compiling with boost 1.35 On 23-Aug-08, at 5:29 PM, Cory Nelson wrote:
On Sat, Aug 23, 2008 at 2:22 PM, Jean-Sebastien Stoezel
wrote: Hello,
How to pass arguments to a thread?
From the documentation I thought I could do this: mp_ProcessorListenerThread = new boost::thread(ProcessorListener, this);
However I get the following error: 'boost::thread::thread' : no overloaded function takes 2 arguments
new boost::thread(boost::bind(&MyClass::ProcessorListener, this));
-- Cory Nelson _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users