Boost logo

Boost :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2005-09-14 04:14:16


On 9/13/05, Matt Hurd <matt.hurd_at_[hidden]> 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."

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