summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/slicer/hookMap.h8
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();