Skip to content

Commit 5b3672a

Browse files
authored
Merge pull request #9 from TheLartians/TheLartians-patch-1
Use size_t as enumeration index type
2 parents f822c3d + 259fc57 commit 5b3672a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/easy_iterator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ namespace easy_iterator {
365365
* Returns an object that is iterated as `[index, value]`.
366366
*/
367367
template <class T> auto enumerate(T && t){
368-
return zip(wrap(RangeIterator(0), IterationEnd()), t);
368+
return zip(wrap(RangeIterator<size_t>(0), IterationEnd()), t);
369369
}
370370

371371
/**

0 commit comments

Comments
 (0)