Boost C++ Libraries: Ticket #7349: packaged_task holds refence to temporary https://svn.boost.org/trac10/ticket/7349 <p> The ctor of packaged_task creates a rebound allocator on the stack (stack frame of ctor). the allocator instance is passed to allocator_destructor which hold a <strong>reference</strong> to the allocator. Unfortunately the allocator instance will be destroyed/invalid after return from ctor. </p> <p> Suggestion, because of the allocators a required to by copyable allocator_destructor should store the value of the allocator instance (using allocators copy-ctor). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7349 Trac 1.4.3 viboes Sun, 09 Sep 2012 07:55:54 GMT status, version, milestone changed https://svn.boost.org/trac10/ticket/7349#comment:1 https://svn.boost.org/trac10/ticket/7349#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.52.0</span> → <span class="trac-field-new">Boost 1.51.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.52.0</span> </li> </ul> Ticket viboes Sun, 09 Sep 2012 12:39:41 GMT attachment set https://svn.boost.org/trac10/ticket/7349 https://svn.boost.org/trac10/ticket/7349 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">7349_7250.pacth</span> </li> </ul> <p> Fix for this ticket and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7350" title="#7350: Bugs: allocator_destructor does not destroy object (closed: fixed)">#7350</a> </p> Ticket viboes Sun, 09 Sep 2012 12:43:08 GMT <link>https://svn.boost.org/trac10/ticket/7349#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7349#comment:2</guid> <description> <p> Committed in trunk revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/80460" title="Thread: Manage with statefull allocators and call destroy on the task ...">[80460]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 13 Sep 2012 19:13:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7349#comment:3 https://svn.boost.org/trac10/ticket/7349#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Committed revision 80516. </p> Ticket