Browse Source

registry: deprecate ::each

Michele Caini 2 years ago
parent
commit
de386292bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -1083,7 +1083,7 @@ public:
      * @param func A valid function object.
      * @param func A valid function object.
      */
      */
     template<typename Func>
     template<typename Func>
-    void each(Func func) const {
+    [[deprecated("use .storage<Entity>().each() instead")]] void each(Func func) const {
         for(auto [entt]: shortcut->each()) {
         for(auto [entt]: shortcut->each()) {
             func(entt);
             func(entt);
         }
         }