diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-07-28 02:18:16 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-07-28 02:18:16 +0100 |
commit | 64516055e7ff173e7f7a1ff4051148fcb653962a (patch) | |
tree | 912baae9f203655db45f8818044949befa215007 | |
parent | Add missing algorithm include (diff) | |
download | slicer-64516055e7ff173e7f7a1ff4051148fcb653962a.tar.bz2 slicer-64516055e7ff173e7f7a1ff4051148fcb653962a.tar.xz slicer-64516055e7ff173e7f7a1ff4051148fcb653962a.zip |
Remove use of deprecated std::iterator
-rw-r--r-- | slicer/slicer/hookMap.h | 8 |
1 files changed, 7 insertions, 1 deletions
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<std::bidirectional_iterator_tag, HookPtr> { + 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(); |