meta_factory: suppress shadow warning

This commit is contained in:
Michele Caini
2021-08-19 23:02:28 +02:00
parent cf9522bd3b
commit 994ade0638

View File

@@ -545,7 +545,7 @@ inline void meta_reset(const id_type id) ENTT_NOEXCEPT {
for(; *curr; *curr = std::exchange((*curr)->next, nullptr)) {
if constexpr(sizeof...(member) != 0u) {
static_assert(sizeof...(member) == 1u, "Assert in defense of the future me");
for(auto **it = (&((*curr)->*member), ...); *it; *it = std::exchange((*it)->next, nullptr));
for(auto **sub = (&((*curr)->*member), ...); *sub; *sub = std::exchange((*sub)->next, nullptr));
}
}
};