Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::thread object initialization. cannot understand.
From: Igor R (boost.lists_at_[hidden])
Date: 2010-01-18 04:04:11


> works ok!
> now I am even more confused! Is it a bug?

It's not a bug, it's just a context-dependant syntax of c++.
boost::thread f(F()) -- declares a function f that returns
boost::thread and accepts a pointer to a function with no arguments
that returns F.
Something like this :)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net