view: suppress warnings

This commit is contained in:
Michele Caini
2020-08-21 12:24:34 +02:00
parent 27209e4836
commit 2b719726cd

View File

@@ -252,10 +252,10 @@ class basic_view<Entity, exclude_t<Exclude...>, Component...> {
});
}
[[nodiscard]] unchecked_type unchecked(const sparse_set<Entity> *view) const {
[[nodiscard]] unchecked_type unchecked(const sparse_set<Entity> *cpool) const {
std::size_t pos{};
unchecked_type other{};
((std::get<pool_type<Component> *>(pools) == view ? nullptr : (other[pos] = std::get<pool_type<Component> *>(pools), other[pos++])), ...);
((std::get<pool_type<Component> *>(pools) == cpool ? nullptr : (other[pos] = std::get<pool_type<Component> *>(pools), other[pos++])), ...);
return other;
}