Boost C++ Libraries: Ticket #11216: Wrong number of entries in std::vector<boost::tuple<double, double, double> > https://svn.boost.org/trac10/ticket/11216 <p> I have a class with a std::vector&lt;boost::tuple&lt;double, double, double&gt; &gt;, that is supposed to always have at least one entry, but may have more. Hence, in the default constructor, I initialize the std::vector with one entry. The class is also serializable. Up until Boost 1.57, a de-serialized object always had the correct number of entries in the vector. As of 1.58, I am getting one entry too much, which probably means that Boost.Serialization simply attaches entries to the vector of a default-constructed class, but doesn’t clear it first. This happens in C++11-Mode, both on Ubuntu 14.10 (gcc 4.9.1) as well as on MacOS X Yosemite . It DOES NOT happen with a std::vector&lt;double&gt; . Attached to this ticket is a full test case that replicates the problem in a simplified environment. </p> <p> For Boost 1.57 the program returns: </p> <p> t_vec.size() = 1 <br /> t_vec2.size() = 1 <br /> </p> <p> For Boost 1.58 the answer is </p> <p> t_vec.size() = 1 <br /> t_vec2.size() = 2 <br /> </p> <p> Best Regards, <br /> Beet </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11216 Trac 1.4.3 Robert Ramey Tue, 21 Apr 2015 15:47:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11216#comment:1 https://svn.boost.org/trac10/ticket/11216#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> Ticket