snapshot: suppress shadow warnings

This commit is contained in:
Michele Caini
2020-05-07 17:20:25 +02:00
parent fb2a93dc05
commit 85b0bbfd55

View File

@@ -234,13 +234,13 @@ public:
typename traits_type::entity_type length{};
archive(length);
std::vector<entity_type> entities(length);
std::vector<entity_type> all(length);
for(decltype(length) pos{}; pos < length; ++pos) {
archive(entities[pos]);
archive(all[pos]);
}
reg->assign(entities.cbegin(), entities.cend());
reg->assign(all.cbegin(), all.cend());
return *this;
}