|
|
@@ -452,7 +452,7 @@ public:
|
|
|
basic_storage(basic_storage &&other, const allocator_type &allocator) noexcept
|
|
|
: base_type{std::move(other), allocator},
|
|
|
payload{std::move(other.payload), allocator} {
|
|
|
- ENTT_ASSERT(alloc_traits::is_always_equal::value || payload.get_allocator() == other.payload.get_allocator(), "Copying a storage is not allowed");
|
|
|
+ ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a storage is not allowed");
|
|
|
}
|
|
|
|
|
|
/*! @brief Default destructor. */
|
|
|
@@ -466,7 +466,7 @@ public:
|
|
|
* @return This storage.
|
|
|
*/
|
|
|
basic_storage &operator=(basic_storage &&other) noexcept {
|
|
|
- ENTT_ASSERT(alloc_traits::is_always_equal::value || payload.get_allocator() == other.payload.get_allocator(), "Copying a storage is not allowed");
|
|
|
+ ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a storage is not allowed");
|
|
|
|
|
|
shrink_to_size(0u);
|
|
|
base_type::operator=(std::move(other));
|