[thread] SEVERE bug on packaged_task constructor in C++11 mode.
Hi, There is a severe bug in packaged_task constructor when compiling in C++11 mode and giving a copyable functor as parameter, as reported in https://svn.boost.org/trac/boost/ticket/8596. I believe that this is not a regression, this have never worked. Until I find a fix, the packaged_task could be used only with free functions and with movable functors when compiling in C++11 mode. Fortunately there is no regression on C++98 compilers (at least not identified yet). Sorry for the disagreement, Vicente
2013/5/21 Vicente J. Botet Escriba
Hi,
There is a severe bug in packaged_task constructor when compiling in C++11 mode and giving a copyable functor as parameter, as reported in https://svn.boost.org/trac/**boost/ticket/8596https://svn.boost.org/trac/boost/ticket/8596. I believe that this is not a regression, this have never worked.
Until I find a fix, the packaged_task could be used only with free functions and with movable functors when compiling in C++11 mode.
I just updated to boost 1.53.0 and my unit tests now fail due to package_task crashes. It was not happening with1.52.0. Using VC++2012 Update 3. Regards, Szymon Gatner
participants (2)
-
Szymon Gatner
-
Vicente J. Botet Escriba