Michele Caini 5 лет назад
Родитель
Сommit
932603eea3

+ 1 - 0
TODO

@@ -24,3 +24,4 @@ Next:
 * WIP:
  - custom pools.
  - the Perfect Model.
+ - page size 0 -> page less mode

+ 1 - 1
src/entt/entity/runtime_view.hpp

@@ -94,7 +94,7 @@ class basic_runtime_view {
 
         view_iterator operator++(int) {
             view_iterator orig = *this;
-            return operator++(), orig;
+            return ++(*this), orig;
         }
 
         view_iterator & operator--() ENTT_NOEXCEPT {

+ 1 - 1
src/entt/entity/sparse_set.hpp

@@ -72,7 +72,7 @@ class sparse_set {
 
         sparse_set_iterator operator++(int) ENTT_NOEXCEPT {
             iterator orig = *this;
-            return operator++(), orig;
+            return ++(*this), orig;
         }
 
         sparse_set_iterator & operator--() ENTT_NOEXCEPT {

+ 1 - 1
src/entt/entity/storage.hpp

@@ -77,7 +77,7 @@ class storage: public sparse_set<Entity> {
 
         storage_iterator operator++(int) ENTT_NOEXCEPT {
             storage_iterator orig = *this;
-            return operator++(), orig;
+            return ++(*this), orig;
         }
 
         storage_iterator & operator--() ENTT_NOEXCEPT {

+ 2 - 2
src/entt/entity/view.hpp

@@ -113,7 +113,7 @@ class basic_view<Entity, exclude_t<Exclude...>, Component...> {
 
         view_iterator operator++(int) {
             view_iterator orig = *this;
-            return operator++(), orig;
+            return ++(*this), orig;
         }
 
         view_iterator & operator--() ENTT_NOEXCEPT {
@@ -181,7 +181,7 @@ class basic_view<Entity, exclude_t<Exclude...>, Component...> {
 
             range_iterator operator++(int) ENTT_NOEXCEPT {
                 range_iterator orig = *this;
-                return ++it, orig;
+                return ++(*this), orig;
             }
 
             [[nodiscard]] reference operator*() const ENTT_NOEXCEPT {

+ 1 - 1
src/entt/meta/internal.hpp

@@ -313,7 +313,7 @@ class meta_range {
 
         range_iterator operator++(int) ENTT_NOEXCEPT {
             range_iterator orig = *this;
-            return operator++(), orig;
+            return ++(*this), orig;
         }
 
         [[nodiscard]] bool operator==(const range_iterator &other) const ENTT_NOEXCEPT {

+ 2 - 2
src/entt/meta/meta.hpp

@@ -1481,7 +1481,7 @@ public:
     /*! @brief Post-increment operator. @return This iterator. */
     meta_iterator operator++(int) ENTT_NOEXCEPT {
         meta_iterator orig = *this;
-        return next_fn(handle.ref()), orig;
+        return ++(*this), orig;
     }
 
     /**
@@ -1741,7 +1741,7 @@ public:
     /*! @brief Post-increment operator. @return This iterator. */
     meta_iterator operator++(int) ENTT_NOEXCEPT {
         meta_iterator orig = *this;
-        return next_fn(handle.ref()), orig;
+        return ++(*this), orig;
     }
 
     /**

+ 1 - 1
src/entt/meta/range.hpp

@@ -34,7 +34,7 @@ class meta_range {
 
         range_iterator operator++(int) ENTT_NOEXCEPT {
             range_iterator orig = *this;
-            return ++it, orig;
+            return ++(*this), orig;
         }
 
         [[nodiscard]] reference operator*() const ENTT_NOEXCEPT {