Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8596: With C++0x enabled, boost::packaged_task stores a reference to function objects, instead of a copy
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-21 16:33:32
#8596: With C++0x enabled, boost::packaged_task stores a reference to function
objects, instead of a copy
-----------------------------------------------------------+----------------
Reporter: Kees-Jan Dijkzeul <kees-jan.dijkzeul@â¦> | Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------------------+----------------
Comment (by ned14):
Excellent to see this bug report - I can confirm this bug. My GSoC student
candidates found it during the programming task I set them two weeks ago.
It causes substantial memory corruption throughout the process.
I might add I saw different behaviour between BOOST_THREAD_VERSION=3 and
BOOST_THREAD_VERSION=4. This may be important.
C++11's std::packaged_task<> is very clear that it takes a '''copy''' of
the passed callable. I appreciate that compiler oddities may make that
hard.
Niall
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8596#comment:7> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC