소스 검색

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);
         }