Skip to content

Commit 6d20709

Browse files
committed
storage: minor changes
1 parent a9a9853 commit 6d20709

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/entt/entity/storage.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ class basic_storage: public basic_sparse_set<Entity, typename std::allocator_tra
462462
*/
463463
void swap(basic_storage &other) {
464464
using std::swap;
465-
underlying_type::swap(other);
465+
base_type::swap(other);
466466
swap(packed, other.packed);
467467
}
468468

@@ -749,11 +749,10 @@ class basic_storage<Type, Entity, Allocator, std::enable_if_t<component_traits<T
749749
: public basic_sparse_set<Entity, typename std::allocator_traits<Allocator>::template rebind_alloc<Entity>> {
750750
using alloc_traits = std::allocator_traits<Allocator>;
751751
static_assert(std::is_same_v<typename alloc_traits::value_type, Type>, "Invalid value type");
752-
using underlying_type = basic_sparse_set<Entity, typename alloc_traits::template rebind_alloc<Entity>>;
753752

754753
public:
755754
/*! @brief Base type. */
756-
using base_type = underlying_type;
755+
using base_type = basic_sparse_set<Entity, typename alloc_traits::template rebind_alloc<Entity>>;
757756
/*! @brief Component traits. */
758757
using traits_type = component_traits<Type, Entity>;
759758
/*! @brief Allocator type. */

0 commit comments

Comments
 (0)