Merge branch 'hotfix/add-deleter-constructor-to-unique-ptr'

This commit is contained in:
John Wellbelove 2021-01-23 12:59:40 +00:00
commit 2bb66c2e17

View File

@ -1256,6 +1256,7 @@ namespace etl
//*********************************
unique_ptr(unique_ptr&& p_) ETL_NOEXCEPT
: p(p_.release())
, deleter(etl::move(p_.deleter))
{
}
#endif
@ -1281,7 +1282,10 @@ namespace etl
//*********************************
~unique_ptr()
{
deleter(p);
if (p != ETL_NULLPTR)
{
deleter(p);
}
}
//*********************************