From 2a10eaae094e48a157d55ec886aaa07b0d0be6c9 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 28 Oct 2024 23:52:48 +0100 Subject: Some work on test framework & option --- asl/maybe_uninit.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asl/maybe_uninit.hpp') diff --git a/asl/maybe_uninit.hpp b/asl/maybe_uninit.hpp index 19351d5..0ab09ee 100644 --- a/asl/maybe_uninit.hpp +++ b/asl/maybe_uninit.hpp @@ -39,9 +39,9 @@ public: constexpr T* init_ptr_unsafe() & { return &m_value; } // @Safety Reference must only be accessed when in initialized state. - constexpr T& as_init_unsafe() && = delete; - constexpr const T& as_init_unsafe() const& { return m_value; } - constexpr T& as_init_unsafe() & { return m_value; } + constexpr T&& as_init_unsafe() && { return ASL_MOVE(m_value); } + constexpr const T& as_init_unsafe() const& { return m_value; } + constexpr T& as_init_unsafe() & { return m_value; } // @Safety Must be called only when in uninitialized state. template -- cgit