From 64516055e7ff173e7f7a1ff4051148fcb653962a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 28 Jul 2022 02:18:16 +0100 Subject: Remove use of deprecated std::iterator --- slicer/slicer/hookMap.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/slicer/slicer/hookMap.h b/slicer/slicer/hookMap.h index bfced64..92035de 100644 --- a/slicer/slicer/hookMap.h +++ b/slicer/slicer/hookMap.h @@ -19,8 +19,14 @@ namespace Slicer { class eq; - class iter : public std::iterator { + class iter { public: + using iterator_category = std::bidirectional_iterator_tag; + using value_type = HookPtr; + using difference_type = std::ptrdiff_t; + using pointer = HookPtr *; + using reference = HookPtr &; + [[nodiscard]] constexpr inline iter(const eq * const r, const HookPtr * c) : range(r), cur(c) { moveMatch(); -- cgit v1.2.3