Pārlūkot izejas kodu

registry: deprecate ::each

Michele Caini 3 gadi atpakaļ
vecāks
revīzija
de386292bc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);
         }
         }