diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-20 16:59:46 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-20 16:59:46 +0100 |
| commit | cb01bffde672cf7f4bec3a1c5b6383241181c960 (patch) | |
| tree | 3bc292c74999825c935b41f79db5f71957aa99cc /libs | |
| parent | 9433102e33dae5697ca71c1d9116791fa933c974 (diff) | |
| download | teachos-cb01bffde672cf7f4bec3a1c5b6383241181c960.tar.xz teachos-cb01bffde672cf7f4bec3a1c5b6383241181c960.zip | |
kstd/vector: relax move constructor
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/kstd/include/kstd/vector | 2 |
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)) |
