From cc7c7ac9d710342469bd6bcaf1af97631834690e Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 9 Dec 2023 01:33:33 -0600 Subject: [PATCH] [ox/std] Fix more functions to work with UPter custom deleters --- deps/ox/src/ox/std/memory.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/ox/src/ox/std/memory.hpp b/deps/ox/src/ox/std/memory.hpp index 82543bf63..4c0ac3e75 100644 --- a/deps/ox/src/ox/std/memory.hpp +++ b/deps/ox/src/ox/std/memory.hpp @@ -210,17 +210,17 @@ class UniquePtr { return m_t; } - template - constexpr void reset(UniquePtr &&other = UniquePtr()) { + template + constexpr void reset(UniquePtr &&other = UniquePtr()) { auto t = m_t; m_t = other.release(); Deleter()(t); } - constexpr UniquePtr &operator=(const UniquePtr &other) = delete; + constexpr UniquePtr &operator=(UniquePtr const&other) = delete; template - constexpr UniquePtr &operator=(const UniquePtr &other) = delete; + constexpr UniquePtr &operator=(UniquePtr const&other) = delete; constexpr UniquePtr &operator=(UniquePtr &&other) noexcept { reset(std::move(other));