summaryrefslogtreecommitdiff
path: root/src/utf8_iterator.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-10-07 15:55:57 +0800
committerMaxime Coste <mawww@kakoune.org>2017-10-07 21:54:59 +0800
commit80d2506c348d045845d5455c21f39697c2e9163c (patch)
treedc6afc77abe00ef55f82e6735eaf7c1d243acf57 /src/utf8_iterator.hh
parente18836aea70cadb5a85f339fb8c6827bf0a42f22 (diff)
Make utf8_iterator traits clear about it returning non-references
Diffstat (limited to 'src/utf8_iterator.hh')
-rw-r--r--src/utf8_iterator.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh
index b2563e43..20386069 100644
--- a/src/utf8_iterator.hh
+++ b/src/utf8_iterator.hh
@@ -18,7 +18,8 @@ template<typename BaseIt,
typename DifferenceType = CharCount,
typename InvalidPolicy = utf8::InvalidPolicy::Pass>
class iterator : public std::iterator<std::bidirectional_iterator_tag,
- CodepointType, DifferenceType>
+ CodepointType, DifferenceType,
+ CodepointType*, CodepointType>
{
public:
iterator() = default;