Skip to content

Commit d985b1d

Browse files
committed
Take "gen" by reference to avoid surprises
1 parent 9c34e61 commit d985b1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/container/experimental/segmented_generate.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace detail_algo {
3737

3838
template <class RAIter, class Generator>
3939
void segmented_generate_dispatch
40-
(RAIter first, RAIter last, Generator gen, const non_segmented_iterator_tag &, const std::random_access_iterator_tag &)
40+
(RAIter first, RAIter last, Generator &gen, const non_segmented_iterator_tag &, const std::random_access_iterator_tag &)
4141
{
4242
typedef typename iterator_traits<RAIter>::difference_type difference_type;
4343

0 commit comments

Comments
 (0)