Changed unique() to underlying_type()

Added underlying_type() to etl::not_null<T*>
This commit is contained in:
John Wellbelove 2025-08-16 10:12:41 +01:00
parent 2d22dfe236
commit 3bc87f1045

View File

@ -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: