Skip to content

Commit

Permalink
updated single include file
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Aug 2, 2022
1 parent 268723c commit e4ccb87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions single_include/entt/entt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17430,7 +17430,7 @@ class basic_storage: public basic_sparse_set<Entity, typename std::allocator_tra
void swap_and_pop(typename underlying_type::basic_iterator first, typename underlying_type::basic_iterator last) override {
for(; first != last; ++first) {
// cannot use first::index() because it would break with cross iterators
const auto pos = index(*first);
const auto pos = base_type::index(*first);
auto &elem = element_at(base_type::size() - 1u);
// destroying on exit allows reentrant destructors
[[maybe_unused]] auto unused = std::exchange(element_at(pos), std::move(elem));
Expand All @@ -17447,7 +17447,7 @@ class basic_storage: public basic_sparse_set<Entity, typename std::allocator_tra
void in_place_pop(typename underlying_type::basic_iterator first, typename underlying_type::basic_iterator last) override {
for(; first != last; ++first) {
// cannot use first::index() because it would break with cross iterators
const auto pos = index(*first);
const auto pos = base_type::index(*first);
base_type::in_place_pop(first, first + 1u);
std::destroy_at(std::addressof(element_at(pos)));
}
Expand Down Expand Up @@ -31615,7 +31615,7 @@ class basic_storage: public basic_sparse_set<Entity, typename std::allocator_tra
void swap_and_pop(typename underlying_type::basic_iterator first, typename underlying_type::basic_iterator last) override {
for(; first != last; ++first) {
// cannot use first::index() because it would break with cross iterators
const auto pos = index(*first);
const auto pos = base_type::index(*first);
auto &elem = element_at(base_type::size() - 1u);
// destroying on exit allows reentrant destructors
[[maybe_unused]] auto unused = std::exchange(element_at(pos), std::move(elem));
Expand All @@ -31632,7 +31632,7 @@ class basic_storage: public basic_sparse_set<Entity, typename std::allocator_tra
void in_place_pop(typename underlying_type::basic_iterator first, typename underlying_type::basic_iterator last) override {
for(; first != last; ++first) {
// cannot use first::index() because it would break with cross iterators
const auto pos = index(*first);
const auto pos = base_type::index(*first);
base_type::in_place_pop(first, first + 1u);
std::destroy_at(std::addressof(element_at(pos)));
}
Expand Down

0 comments on commit e4ccb87

Please sign in to comment.