skypjack 1 месяц назад
Родитель
Сommit
00729e19b4
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/entt/entity/view.hpp

+ 4 - 4
src/entt/entity/view.hpp

@@ -29,14 +29,14 @@ const Type *view_placeholder() {
     return &placeholder;
 }
 
-template<typename It, entity_like Entity>
-[[nodiscard]] bool all_of(It first, const It last, const Entity entt) noexcept {
+template<typename It>
+[[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<typename It, entity_like Entity>
-[[nodiscard]] bool none_of(It first, const It last, const Entity entt) noexcept {
+template<typename It>
+[[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;
 }