From 3bc87f1045ed09f818c1a5ad52705adfbc56ab62 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 16 Aug 2025 10:12:41 +0100 Subject: [PATCH] Changed unique() to underlying_type() Added underlying_type() to etl::not_null --- include/etl/not_null.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/not_null.h b/include/etl/not_null.h index 12cbf2e2..54a5be6d 100644 --- a/include/etl/not_null.h +++ b/include/etl/not_null.h @@ -281,7 +281,7 @@ namespace etl //********************************* underlying_type& underlying() { - return u_ptr; + return etl::move(u_ptr); } //********************************* @@ -289,7 +289,7 @@ namespace etl //********************************* const underlying_type& underlying() const { - return u_ptr; + return etl::move(u_ptr); } private: