File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class enumerator
69
69
70
70
bool operator !=(iterator other) { return inner_iter != other.inner_iter ; }
71
71
72
- typename Container::iterator::value_type item () { return *inner_iter; }
72
+ typename std::iterator_traits< typename Container::iterator> ::value_type const & item () { return *inner_iter; }
73
73
74
74
value_type operator *() { return value_type{counter_, *inner_iter}; }
75
75
@@ -95,7 +95,7 @@ class enumerator
95
95
96
96
bool operator !=(const_iterator other) { return inner_iter != other.inner_iter ; }
97
97
98
- typename Container::const_iterator::value_type item () { return *inner_iter; }
98
+ typename std::iterator_traits< typename Container::const_iterator> ::value_type const & item () { return *inner_iter; }
99
99
100
100
const_value_type operator *() { return const_value_type{counter_, *inner_iter}; }
101
101
You can’t perform that action at this time.
0 commit comments