From b08e965d0467ffff8e61bf2522ef8fdd94f35cc8 Mon Sep 17 00:00:00 2001 From: Randy Jones Date: Sun, 13 Sep 2020 16:11:20 -0700 Subject: [PATCH 1/2] allow compilation with C++11 --- utf.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf.hpp b/utf.hpp index 9afd330..5dce7fb 100644 --- a/utf.hpp +++ b/utf.hpp @@ -302,7 +302,7 @@ namespace utf { typedef std::input_iterator_tag iterator_category; typedef codepoint_type value_type; typedef std::ptrdiff_t difference_type; - typedef std::remove_const_t* pointer; + typedef std::remove_const::type pointer; typedef codepoint_type& reference; explicit codepoint_iterator() : val(), pos() {} From f2dc920d76d151eab3af3f28d93e84d5932d129c Mon Sep 17 00:00:00 2001 From: Randy Jones Date: Sun, 13 Sep 2020 16:26:33 -0700 Subject: [PATCH 2/2] fix post-increment operaotr for codepoint_iterator --- utf.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf.hpp b/utf.hpp index 5dce7fb..095e4fc 100644 --- a/utf.hpp +++ b/utf.hpp @@ -320,7 +320,7 @@ namespace utf { return *this; } codepoint_iterator operator++(int) { - codepoint_type tmp = *this; + codepoint_iterator tmp = *this; ++(*this); return tmp; }