
14 Sep
2005
14 Sep
'05
9:14 a.m.
On 9/13/05, Matt Hurd <matt.hurd@gmail.com> wrote:
any particular reason why the function sig accepted is function < void ( void ) > instead of function < void ( void * ) >
That's because if you need to pass any arguments to the thread function, you can use boost::bind. Which makes it more readable and type-safe. No need to have a void* parameter in the thread function.
matt
-- Felipe Magno de Almeida Developer from synergy and Computer Science student from State University of Campinas(UNICAMP). Unicamp: http://www.ic.unicamp.br Synergy: http://www.synergy.com.br "There is no dark side of the moon really. Matter of fact it's all dark."