From c6ce70f1d5dd12daaf543070584cb3ed96dc3b1e Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 19 Aug 2022 20:06:21 -0400 Subject: remove deprecated use of std::iterator --- entityx/Entity.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/entityx/Entity.h b/entityx/Entity.h index 7c69e0a..3a70839 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -367,8 +367,14 @@ class EntityManager : entityx::help::NonCopyable { /// An iterator over a view of the entities in an EntityManager. /// If All is true it will iterate over all valid entities and will ignore the entity mask. template - class ViewIterator : public std::iterator { + class ViewIterator /*: public std::iterator*/ { public: + using iterator_category = std::input_iterator_tag; + using value_type = Entity::Id; + using difference_type = Entity::Id; + using pointer = const Entity::Id*; + using reference = const Entity::Id&; + Delegate &operator ++() { ++i_; next(); -- cgit v1.2.3