[ox][std] Fix UniquePtr to use provided deleter

This commit is contained in:
Gary Talent 2021-08-26 20:04:01 -05:00
parent 1bf882c674
commit 4bc3da40b4

View File

@ -39,7 +39,7 @@ class UniquePtr {
}
~UniquePtr() {
DefaultDelete<T>()(m_t);
Deleter()(m_t);
}
constexpr T *release() noexcept {
@ -58,7 +58,7 @@ class UniquePtr {
auto t = m_t;
m_t = other.m_t;
other.m_t = nullptr;
DefaultDelete<T>()(t);
Deleter()(t);
}
template<typename U>