
4 Jan
2009
4 Jan
'09
1:24 a.m.
----- Original Message ----- From: "vicente.botet" <vicente.botet@wanadoo.fr> To: <boost@lists.boost.org> Sent: Saturday, January 03, 2009 6:53 PM Subject: [boost] [future William proposal] packaged_task do not acceptboost::ref of a nullary functor
Hi,
packaged_task do not accept boost::ref to nullary functions while thread allows it. Shouldn't packaged_task > accept them? How can the user workaround this issue? How thread solved this issue?
I have found a workaround. Instead of boost::packaged_task<unsigned > tsk(boost::ref(f)); I use boost::packaged_task<unsigned> tsk(boost::bind(boost::ref(f))); Is this the correct way? Regards, Vicente