boostorg / algorithm

Boost.org algorithm module
http://boost.org/libs/algorithm
Boost Software License 1.0
114 stars 105 forks source link

fix range-base gather algorithm #116

Closed jiayuehua closed 1 year ago

jiayuehua commented 1 year ago

gather algorithm is a mutation algorithm, so its range parameter should not be const reference type.

jiayuehua commented 1 year ago

@mclow

nigels-com commented 1 year ago

Looks reasonable. Consider cloning gather_test1.cpp for the range variant.