[ox/std] Fix UPtr::reset to conform to unique_ptr::reset
This commit is contained in:
3
deps/ox/src/ox/std/memory.hpp
vendored
3
deps/ox/src/ox/std/memory.hpp
vendored
@@ -213,8 +213,7 @@ class UniquePtr {
|
|||||||
return m_t;
|
return m_t;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename U, typename UDeleter>
|
constexpr void reset(UniquePtr &&other = UniquePtr()) {
|
||||||
constexpr void reset(UniquePtr<U, UDeleter> &&other = UniquePtr()) {
|
|
||||||
auto t = m_t;
|
auto t = m_t;
|
||||||
m_t = other.release();
|
m_t = other.release();
|
||||||
Deleter()(t);
|
Deleter()(t);
|
||||||
|
Reference in New Issue
Block a user