]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
remove deprecated use of std::iterator
authorClyne Sullivan <clyne@bitgloo.com>
Sat, 20 Aug 2022 00:06:21 +0000 (20:06 -0400)
committerClyne Sullivan <clyne@bitgloo.com>
Sat, 20 Aug 2022 00:06:21 +0000 (20:06 -0400)
entityx/Entity.h

index 7c69e0a50ebff7c11f29cea0ca41e22429003623..3a708396d82a7d9f762366adb37b49db38b09783 100644 (file)
@@ -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 Delegate, bool All = false>
-  class ViewIterator : public std::iterator<std::input_iterator_tag, Entity::Id> {
+  class ViewIterator /*: public std::iterator<std::input_iterator_tag, Entity::Id>*/ {
    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();