Skip to content

Commit 13947eb

Browse files
author
Ryan Haining
committed
Specifies chain pointer and reference to match calls exactly
1 parent 674e8b9 commit 13947eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cppitertools/chain.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ class iter::impl::Chained {
142142
using iterator_category = std::input_iterator_tag;
143143
using value_type = typename IteratorData<TupTypeT>::TraitsValue;
144144
using difference_type = std::ptrdiff_t;
145-
using pointer = value_type*;
146-
using reference = value_type&;
145+
using pointer = typename IteratorData<TupTypeT>::ArrowType;
146+
using reference = typename IteratorData<TupTypeT>::DerefType;
147147

148148
Iterator(std::size_t i, typename IterData::IterTupType&& iters,
149149
typename IterData::IterTupType&& ends)

0 commit comments

Comments
 (0)