Skip to content

Commit 5bc867a

Browse files
author
Ryan Haining
committed
Removes cv qualifiers from value_type
1 parent cf16b06 commit 5bc867a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cppitertools/internal/iterbase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace iter {
117117

118118
template <typename Container>
119119
using iterator_traits_deref =
120-
std::remove_reference_t<iterator_deref<Container>>;
120+
std::remove_cv_t<std::remove_reference_t<iterator_deref<Container>>>;
121121

122122
template <typename T, typename = void>
123123
struct IsIterable : std::false_type {};

0 commit comments

Comments
 (0)