forked from boostorg/range
[boost][range] - Ticket 5993 - Accumulate Concept Check constness.
[SVN r77993]
This commit is contained in:
2
include/boost/range/numeric.hpp
Executable file → Normal file
2
include/boost/range/numeric.hpp
Executable file → Normal file
@ -40,7 +40,7 @@ namespace boost
|
||||
template< class SinglePassRange, class Value >
|
||||
inline Value accumulate( const SinglePassRange& rng, Value init )
|
||||
{
|
||||
BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<SinglePassRange> ));
|
||||
BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const SinglePassRange> ));
|
||||
return std::accumulate( boost::begin(rng), boost::end(rng), init );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user