diff --git a/src/entt/core/compressed_pair.hpp b/src/entt/core/compressed_pair.hpp index 090b0007c..c898df8ac 100644 --- a/src/entt/core/compressed_pair.hpp +++ b/src/entt/core/compressed_pair.hpp @@ -266,6 +266,8 @@ inline void swap(compressed_pair &lhs, compressed_pair 6 template struct tuple_size>: integral_constant {}; @@ -273,6 +275,7 @@ namespace std { struct tuple_element>: conditional { static_assert(Index < 2u, "Index out of bounds"); }; +#endif } diff --git a/src/entt/entity/sparse_set.hpp b/src/entt/entity/sparse_set.hpp index f25d3ce2f..b76aecb61 100644 --- a/src/entt/entity/sparse_set.hpp +++ b/src/entt/entity/sparse_set.hpp @@ -200,7 +200,8 @@ class basic_sparse_set { } void resize_packed_array(const std::size_t req) { - auto &&[allocator, len] = reserved; + auto &allocator = reserved.first(); + auto &len = reserved.second(); ENTT_ASSERT((req != len) && !(req < count), "Invalid request"); const auto mem = alloc_traits::allocate(allocator, req); @@ -217,7 +218,8 @@ class basic_sparse_set { } void release_memory() { - auto &&[allocator, len] = reserved; + auto &allocator = reserved.first(); + auto &len = reserved.second(); if(packed_array) { std::destroy(packed_array, packed_array + len); diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index 857cc0e8b..e32fd70da 100644 --- a/src/entt/entity/storage.hpp +++ b/src/entt/entity/storage.hpp @@ -184,7 +184,8 @@ class basic_storage: public basic_sparse_set