diff options
Diffstat (limited to 'src/string_utils.hh')
| -rw-r--r-- | src/string_utils.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/string_utils.hh b/src/string_utils.hh index 1c2d4076..b2dc3d30 100644 --- a/src/string_utils.hh +++ b/src/string_utils.hh @@ -68,8 +68,14 @@ String expand_tabs(StringView line, ColumnCount tabstop, ColumnCount col = 0); struct WrapView { - struct Iterator : std::iterator<std::forward_iterator_tag, StringView> + struct Iterator { + using difference_type = ptrdiff_t; + using value_type = StringView; + using pointer = StringView*; + using reference = StringView&; + using iterator_category = std::forward_iterator_tag; + Iterator(StringView text, ColumnCount max_width); Iterator& operator++(); |
