From 54b95b16629f0cd4bc30e6899e00019b3ab94012 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sat, 17 May 2025 23:01:51 +0200 Subject: Buffer type has to be moveable, always --- asl/containers/buffer.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'asl/containers/buffer.hpp') diff --git a/asl/containers/buffer.hpp b/asl/containers/buffer.hpp index 0e30745..f554218 100644 --- a/asl/containers/buffer.hpp +++ b/asl/containers/buffer.hpp @@ -16,7 +16,8 @@ namespace asl { -template +template +requires is_object && moveable class buffer { T* m_data{}; @@ -244,7 +245,6 @@ public: } constexpr buffer(buffer&& other) - requires moveable : buffer(std::move(other.m_allocator)) { move_from_other(std::move(other), false); @@ -259,7 +259,6 @@ public: } constexpr buffer& operator=(buffer&& other) - requires moveable { if (&other == this) { return *this; } move_from_other(std::move(other), true); -- cgit