Преглед изворни кода

registry: deprecate ::each

Michele Caini пре 3 година
родитељ
комит
de386292bc
1 измењених фајлова са 1 додато и 1 уклоњено
  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.
      */
     template<typename Func>
-    void each(Func func) const {
+    [[deprecated("use .storage<Entity>().each() instead")]] void each(Func func) const {
         for(auto [entt]: shortcut->each()) {
             func(entt);
         }