Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::thread object initialization. cannot understand.
From: Michal (rabbitko_at_[hidden])
Date: 2010-01-21 12:34:13


Igor R <boost.lists_at_[hidden]> writes:

>> 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 :)

:)) nice:)

thank You for the explanation
best regards!
Michal


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