diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index fb7b9df0c..5e18c0c09 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -29,14 +29,14 @@ const Type *view_placeholder() { return &placeholder; } -template -[[nodiscard]] bool all_of(It first, const It last, const Entity entt) noexcept { +template +[[nodiscard]] bool all_of(It first, const It last, const entity_like auto entt) noexcept { for(; (first != last) && (*first)->contains(entt); ++first) {} return first == last; } -template -[[nodiscard]] bool none_of(It first, const It last, const Entity entt) noexcept { +template +[[nodiscard]] bool none_of(It first, const It last, const entity_like auto entt) noexcept { for(; (first != last) && !(*first)->contains(entt); ++first) {} return first == last; }