aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/kstd/include/kstd/vector2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/kstd/include/kstd/vector b/libs/kstd/include/kstd/vector
index 2d148e4..0a3d6b7 100644
--- a/libs/kstd/include/kstd/vector
+++ b/libs/kstd/include/kstd/vector
@@ -154,7 +154,7 @@ namespace kstd
//!
//! @param other The source vector.
constexpr vector(vector && other) noexcept
- : m_allocator{std::move(std::exchange(other.m_allocator, allocator_type{}))}
+ : m_allocator{std::move(other.m_allocator)}
, m_size{std::exchange(other.m_size, size_type{})}
, m_capacity(std::exchange(other.m_capacity, size_type{}))
, m_data(std::exchange(other.m_data, nullptr))