Hi everyone,
Could someone please point me in the right direction with this one? :
class data
{
int x;
};
class worker
{
void run(&data d);
};
void run_worker(worker& w, data& d)
{
boost::thread(boost::bind(&worker::run, &my_worker,
_1)(boost:ref(my_data)));
}
void main()
{
worker my_worker;
data my_data;
run_worker(my_worker, my_data);
}
Compiling this yields..
test.cpp(24) : error C2440: 'type cast' : cannot convert from
'boost::_bi::bind_t
participants (2)
-
Mike Feldmeier
-
Peter Dimov