summaryrefslogtreecommitdiff
path: root/asl/containers/buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/containers/buffer.hpp')
-rw-r--r--asl/containers/buffer.hpp5
1 files changed, 2 insertions, 3 deletions
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<is_object T, allocator Allocator = DefaultAllocator>
+template<typename T, allocator Allocator = DefaultAllocator>
+requires is_object<T> && moveable<T>
class buffer
{
T* m_data{};
@@ -244,7 +245,6 @@ public:
}
constexpr buffer(buffer&& other)
- requires moveable<T>
: 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<T>
{
if (&other == this) { return *this; }
move_from_other(std::move(other), true);