diff --git a/src/ox/std/hashmap.hpp b/src/ox/std/hashmap.hpp index 18332f42a..589e49fb1 100644 --- a/src/ox/std/hashmap.hpp +++ b/src/ox/std/hashmap.hpp @@ -41,7 +41,7 @@ class HashMap { constexpr HashMap &operator=(const HashMap &other); - constexpr HashMap &operator=(HashMap &&other); + constexpr HashMap &operator=(HashMap &&other) noexcept; /** * K is assumed to be a null terminated string. @@ -135,7 +135,7 @@ constexpr HashMap &HashMap::operator=(const HashMap &other) { } template -constexpr HashMap &HashMap::operator=(HashMap &&other) { +constexpr HashMap &HashMap::operator=(HashMap &&other) noexcept { if (this != &other) { clear(); m_keys = std::move(other.m_keys); diff --git a/src/ox/std/memory.hpp b/src/ox/std/memory.hpp index 58a06929b..8457fbd28 100644 --- a/src/ox/std/memory.hpp +++ b/src/ox/std/memory.hpp @@ -222,13 +222,13 @@ class UniquePtr { template constexpr UniquePtr &operator=(const UniquePtr &other) = delete; - constexpr UniquePtr &operator=(UniquePtr &&other) { + constexpr UniquePtr &operator=(UniquePtr &&other) noexcept { reset(std::move(other)); return *this; } template - constexpr UniquePtr &operator=(UniquePtr &&other) { + constexpr UniquePtr &operator=(UniquePtr &&other) noexcept { reset(std::move(other)); return *this; }