Skip to content

Commit bca97a5

Browse files
committed
moves iterators rather than copies
1 parent a3e11c9 commit bca97a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

slice.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ namespace iter {
5454
DifferenceType step;
5555

5656
public:
57-
Iterator (iterator_type<Container> si,
58-
iterator_type<Container> se,
57+
Iterator (iterator_type<Container>&& si,
58+
iterator_type<Container>&& se,
5959
DifferenceType start,
6060
DifferenceType stop,
6161
DifferenceType step)

0 commit comments

Comments
 (0)