File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ namespace poolstl {
37
37
using value_type = T;
38
38
using difference_type = std::ptrdiff_t ;
39
39
using pointer = T *;
40
- using reference = T & ;
40
+ using reference = T;
41
41
using iterator_category = std::random_access_iterator_tag;
42
42
43
43
iota_iter () : value{} {}
@@ -47,8 +47,8 @@ namespace poolstl {
47
47
iota_iter<T> &operator =(T rhs) { value = rhs; return *this ; }
48
48
iota_iter<T> &operator =(const iota_iter &rhs) { value = rhs.value ; return *this ; }
49
49
50
- T operator *() const { return value; }
51
- T operator [](difference_type rhs) const { return value + rhs; }
50
+ reference operator *() const { return value; }
51
+ reference operator [](difference_type rhs) const { return value + rhs; }
52
52
// operator-> has no meaning in this application
53
53
54
54
bool operator ==(const iota_iter<T> &rhs) const { return value == rhs.value ; }
You can’t perform that action at this time.
0 commit comments