From eb0d03f437ebf4e6668c991c322f53f73b354562 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 13 Oct 2014 19:54:40 +0100 Subject: Use Pass as default policy for invalid utf8 avoid asserting on that --- src/utf8_iterator.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utf8_iterator.hh') diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh index d2d8fa6a..1637fe2d 100644 --- a/src/utf8_iterator.hh +++ b/src/utf8_iterator.hh @@ -12,7 +12,7 @@ namespace utf8 // adapter for an iterator on bytes which permits to iterate // on unicode codepoints instead. template + typename InvalidPolicy = utf8::InvalidPolicy::Pass> class iterator { public: @@ -140,7 +140,7 @@ private: mutable Codepoint m_value = -1; }; -template +template iterator make_iterator(Iterator it) { return iterator{std::move(it)}; -- cgit v1.2.3