Skip to content

Commit b2e4e22

Browse files
committed
moves iterators rather than copies
1 parent bf33f34 commit b2e4e22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

enumerate.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ namespace iter {
7171
iterator_type<Container> sub_iter;
7272
std::size_t index;
7373
public:
74-
Iterator(const iterator_type<Container>& si)
75-
: sub_iter{si},
74+
Iterator(iterator_type<Container>&& si)
75+
: sub_iter{std::move(si)},
7676
index{0}
7777
{ }
7878

0 commit comments

Comments
 (0)