
18 Jan
2010
18 Jan
'10
9:04 a.m.
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 :)