diff --git a/deps/ox/src/ox/std/memory.hpp b/deps/ox/src/ox/std/memory.hpp index 82543bf6..4c0ac3e7 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));