mirror of
https://github.com/boostorg/range.git
synced 2026-05-03 19:40:46 +02:00
[boost][range] - Ticket 5993 - Accumulate Concept Check constness.
[SVN r77993]
This commit is contained in:
Executable → Regular
+1
-1
@@ -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