From 56f58502072cfb2874f8a070dcdb40d5b2cb57e6 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 14 Sep 2023 16:49:24 +0200 Subject: [PATCH] fixup! Do not inherit from `std::iterator`. --- include/zim/archive.h | 2 +- include/zim/search_iterator.h | 2 +- include/zim/suggestion_iterator.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/zim/archive.h b/include/zim/archive.h index dd55d8cf9..fe10c4043 100644 --- a/include/zim/archive.h +++ b/include/zim/archive.h @@ -544,7 +544,7 @@ namespace zim class LIBZIM_API Archive::iterator { public: - using iterator_category = std::bidirectional_iterator_tag; + using iterator_category = std::input_iterator_tag; using value_type = Entry; using pointer = Entry*; using reference = Entry&; diff --git a/include/zim/search_iterator.h b/include/zim/search_iterator.h index 3d81f280a..8791eb1f8 100644 --- a/include/zim/search_iterator.h +++ b/include/zim/search_iterator.h @@ -36,7 +36,7 @@ class LIBZIM_API SearchIterator { friend class zim::SearchResultSet; public: - using iterator_category = std::bidirectional_iterator_tag; + using iterator_category = std::input_iterator_tag; using value_type = Entry; using pointer = Entry*; using reference = Entry&; diff --git a/include/zim/suggestion_iterator.h b/include/zim/suggestion_iterator.h index 69e962cc9..06105584b 100644 --- a/include/zim/suggestion_iterator.h +++ b/include/zim/suggestion_iterator.h @@ -36,10 +36,10 @@ class LIBZIM_API SuggestionIterator typedef Archive::iterator RangeIterator; friend class SuggestionResultSet; public: - using iterator_category = std::bidirectional_iterator_tag; + using iterator_category = std::input_iterator_tag; using value_type = SuggestionItem; using pointer = SuggestionItem*; - using referenc = SuggestionItem&; + using reference = SuggestionItem&; SuggestionIterator() = delete; SuggestionIterator(const SuggestionIterator& it);