aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-20 16:59:46 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-20 16:59:46 +0100
commitcb01bffde672cf7f4bec3a1c5b6383241181c960 (patch)
tree3bc292c74999825c935b41f79db5f71957aa99cc
parent9433102e33dae5697ca71c1d9116791fa933c974 (diff)
downloadteachos-cb01bffde672cf7f4bec3a1c5b6383241181c960.tar.xz
teachos-cb01bffde672cf7f4bec3a1c5b6383241181c960.zip
kstd/vector: relax move constructor
-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))