[ox/std] Fix MSVC warnings

This commit is contained in:
Gary Talent 2023-11-14 20:23:21 -06:00
parent 99a7a2cbfc
commit b12097769e
2 changed files with 4 additions and 4 deletions

View File

@ -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<K, T> &HashMap<K, T>::operator=(const HashMap<K, T> &other) {
}
template<typename K, typename T>
constexpr HashMap<K, T> &HashMap<K, T>::operator=(HashMap<K, T> &&other) {
constexpr HashMap<K, T> &HashMap<K, T>::operator=(HashMap<K, T> &&other) noexcept {
if (this != &other) {
clear();
m_keys = std::move(other.m_keys);

View File

@ -222,13 +222,13 @@ class UniquePtr {
template<typename U>
constexpr UniquePtr &operator=(const UniquePtr<U> &other) = delete;
constexpr UniquePtr &operator=(UniquePtr<T> &&other) {
constexpr UniquePtr &operator=(UniquePtr<T> &&other) noexcept {
reset(std::move(other));
return *this;
}
template<typename U>
constexpr UniquePtr &operator=(UniquePtr<U> &&other) {
constexpr UniquePtr &operator=(UniquePtr<U> &&other) noexcept {
reset(std::move(other));
return *this;
}