Subject: [Boost-bugs] [Boost C++ Libraries] #10740: Multi-level containers do not cooperate with address tracking
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-03 16:16:28
#10740: Multi-level containers do not cooperate with address tracking
----------------------------------------------+---------------------------
Reporter: Simon Etter <ettersi@â¦> | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.56.0 | Severity: Problem
Keywords: Address tracking, STL containers |
----------------------------------------------+---------------------------
Serializing nested sequence containers does not track the object addresses
correctly. See the attached example.
Non-sequence containers may also be subject to this bug, I did not check
them.
The problem is the push_back in collections_load_imp.hpp:65. If t is
itself a container, all elements of t get copied, but their address is not
updated in the archive. In C++11, using emplace() and std::move() should
solve the problem (did not test this).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10740> 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:17 UTC