Boost C++ Libraries: Ticket #7948: Hinted addition on a split_interval_map does more than normal addition. https://svn.boost.org/trac10/ticket/7948 <p> When adding an entry into an empty <code>split_interval_map</code> via the non-hinted <code>add</code>, the value is placed in the container by copying it there, only one value is default constructed for the absorption check. </p> <p> With hinted addition the new entry is first default created in the container, then the entering entry is added via <code>inplace_plus</code>. </p> <p> I would expect both operations to involve the same operations on the entry added since the hint only concerns finding the right place, not the handling. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7948 Trac 1.4.3 Marvin Sielenkemper <m.sielenkemper@…> Tue, 29 Jan 2013 08:38:20 GMT attachment set https://svn.boost.org/trac10/ticket/7948 https://svn.boost.org/trac10/ticket/7948 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Tests.cpp</span> </li> </ul> <p> Two test cases illustrating the problem. </p> Ticket Joachim Faulhaber Sun, 17 Feb 2013 18:54:53 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/7948#comment:1 https://svn.boost.org/trac10/ticket/7948#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">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> <p> Hi Marvin, </p> <p> hmm, good observation. But it's not easy to improve. I reduced the number of default contstructions by making the data member in class template identity_element static. Apart from that, since the code is generic and correct and I don't have a substantial improvement, I will leave the code as it is. </p> <p> If you can provide a patch that works with all tests, you may send in a patch. For now I will close the ticket. </p> <p> Thanx, Joachim </p> Ticket