diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 9ade62a23..5a6f0f8a8 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -1087,7 +1087,7 @@ public: */ template [[nodiscard]] bool owned() const { - return std::any_of(groups.cbegin(), groups.cend(), [](auto &&data) { return (data.second->owned(type_id().hash()) || ...); }); + return stl::any_of(groups.cbegin(), groups.cend(), [](auto &&data) { return (data.second->owned(type_id().hash()) || ...); }); } /** diff --git a/src/entt/stl/algorithm.hpp b/src/entt/stl/algorithm.hpp index c23b3689c..ffb662fa7 100644 --- a/src/entt/stl/algorithm.hpp +++ b/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;