From: Clyne Sullivan Date: Sat, 20 Aug 2022 00:06:21 +0000 (-0400) Subject: remove deprecated use of std::iterator X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=c6ce70f1d5dd12daaf543070584cb3ed96dc3b1e;p=clyne%2Fentityx.git remove deprecated use of std::iterator --- 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();