22 Jan
2012
22 Jan
'12
2:47 a.m.
Niklas,
On Thu, Jan 19, 2012 at 5:08 PM, Niklas Angare
"Chris Cleeland" wrote:
I discussed the issue with a few colleagues and asked what they would expect to happen, and they all had similar expectations to mine (that the functor was not copied).
The documentation is crystal clear, though: "Effects: func is copied into storage managed internally by the thread library"
(http://www.boost.org/doc/libs/1_48_0/doc/html/thread/thread_management.html#...)
Indeed, you are correct. I read many parts of the documentation, but not that. I even looked at examples and the tutorial. -- Chris Cleeland