diff options
Diffstat (limited to 'asl/string.hpp')
-rw-r--r-- | asl/string.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/asl/string.hpp b/asl/string.hpp index fbeffe5..4750cd5 100644 --- a/asl/string.hpp +++ b/asl/string.hpp @@ -11,6 +11,13 @@ class string { buffer<char, Allocator> m_buffer; + explicit constexpr string(buffer<char, Allocator>&& buffer) : + m_buffer{ASL_MOVE(buffer)} + {} + + template<allocator A> + friend class string_builder; + public: constexpr string() requires default_constructible<Allocator> = default; explicit constexpr string(Allocator allocator) : m_buffer{ASL_MOVE(allocator)} {} |