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: