Re: [Boost-bugs] [Boost C++ Libraries] #11961: Serialization of stl container with non-copyable value

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11961: Serialization of stl container with non-copyable value
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-08 11:29:32


#11961: Serialization of stl container with non-copyable value
-------------------------------+------------------------------------------
  Reporter: mohsen.tamiz@… | Owner: ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords: non-copyable, stl containers
-------------------------------+------------------------------------------

Comment (by anonymous):

 By changing line 43 of archive_input_unordered_map.hpp from:
 {{{
 s.insert(t.reference());
 }}}
 to :

 {{{
  s.emplace(piecewise_construct,
            forward_as_tuple(std::move(t.reference().first)),
            forward_as_tuple(std::move(t.reference().second)));
 }}}
 The error disappear, and it works.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11961#comment:2>
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:19 UTC