Boost C++ Libraries: Ticket #5993: range::accumulate is missing a const in a concept check https://svn.boost.org/trac10/ticket/5993 <p> The first overload of boost::accumulate, (const <a class="missing wiki">SinglePassRange</a>&amp;, Value) is not checking for the proper concept. It checks for the non-const version, which causes problem when passing a range that is not mutable. </p> <p> The following line must changed from: BOOST_RANGE_CONCEPT_ASSERT(( <a class="missing wiki">SinglePassRangeConcept</a>&lt;<a class="missing wiki">SinglePassRange</a>&gt; )); </p> <p> To: BOOST_RANGE_CONCEPT_ASSERT(( <a class="missing wiki">SinglePassRangeConcept</a>&lt;const <a class="missing wiki">SinglePassRange</a>&gt; )); </p> <p> Like it is in the 2nd overload. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5993 Trac 1.4.3 Julien Nitard <julien.nitard@…> Sat, 08 Oct 2011 06:24:24 GMT attachment set https://svn.boost.org/trac10/ticket/5993 https://svn.boost.org/trac10/ticket/5993 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">range_accumulate_bug.cpp</span> </li> </ul> <p> sample to reproduce the problem </p> Ticket julien.nitard@… Sun, 04 Mar 2012 08:04:32 GMT attachment set https://svn.boost.org/trac10/ticket/5993 https://svn.boost.org/trac10/ticket/5993 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">numeric.hpp.patch</span> </li> </ul> <p> Path for the proper file. </p> Ticket Neil Groves Sun, 15 Apr 2012 12:25:28 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/5993#comment:1 https://svn.boost.org/trac10/ticket/5993#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.50.0</span> </li> </ul> <p> Resolved on trunk. </p> Ticket