skypjack пре 3 недеља
родитељ
комит
882cbd2251
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 1
      src/entt/entity/registry.hpp
  2. 1 0
      src/entt/stl/algorithm.hpp

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

@@ -1087,7 +1087,7 @@ public:
      */
     template<typename... Type>
     [[nodiscard]] bool owned() const {
-        return std::any_of(groups.cbegin(), groups.cend(), [](auto &&data) { return (data.second->owned(type_id<Type>().hash()) || ...); });
+        return stl::any_of(groups.cbegin(), groups.cend(), [](auto &&data) { return (data.second->owned(type_id<Type>().hash()) || ...); });
     }
 
     /**

+ 1 - 0
src/entt/stl/algorithm.hpp

@@ -7,6 +7,7 @@
 namespace entt::stl {
 
 using std::all_of;
+using std::any_of;
 using std::none_of;
 using std::sort;