Skip to content

Commit faac048

Browse files
authored
Merge pull request #116 from jiayuehua/develop
fix range-base gather algorithm
2 parents 3fe40eb + d1ecc8b commit faac048

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: include/boost/algorithm/gather.hpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2008 Adobe Systems Incorporated
33
44
Distributed under the Boost Software License, Version 1.0. (See accompanying
@@ -84,7 +84,7 @@ namespace boost { namespace algorithm {
8484
template <
8585
typename BidirectionalIterator, // models BidirectionalIterator
8686
typename Pred> // models UnaryPredicate
87-
std::pair<BidirectionalIterator, BidirectionalIterator> gather
87+
std::pair<BidirectionalIterator, BidirectionalIterator> gather
8888
( BidirectionalIterator first, BidirectionalIterator last, BidirectionalIterator pivot, Pred pred )
8989
{
9090
// The first call partitions everything up to (but not including) the pivot element,
@@ -106,11 +106,11 @@ template <
106106
typename BidirectionalRange, //
107107
typename Pred> // Pred models UnaryPredicate
108108
std::pair<
109-
typename boost::range_iterator<const BidirectionalRange>::type,
110-
typename boost::range_iterator<const BidirectionalRange>::type>
109+
typename boost::range_iterator<BidirectionalRange>::type,
110+
typename boost::range_iterator<BidirectionalRange>::type>
111111
gather (
112-
const BidirectionalRange &range,
113-
typename boost::range_iterator<const BidirectionalRange>::type pivot,
112+
BidirectionalRange &range,
113+
typename boost::range_iterator<BidirectionalRange>::type pivot,
114114
Pred pred )
115115
{
116116
return boost::algorithm::gather ( boost::begin ( range ), boost::end ( range ), pivot, pred );

0 commit comments

Comments
 (0)