Michele Caini 2 лет назад
Родитель
Сommit
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);
         }