This commit is contained in:
Michele Caini
2019-08-26 00:30:21 +02:00
parent 8325f5bbae
commit b4c30fc07b

View File

@@ -78,10 +78,7 @@ class basic_runtime_view {
}
bool valid() const ENTT_NOEXCEPT {
const auto entt = *begin;
const auto sz = size_type(to_integer(entt) & traits_type::entity_mask);
return std::all_of(from, to, [entt](const auto *view) {
return std::all_of(from, to, [entt = *begin](const auto *view) {
return view->has(entt);
});
}