Fixed windows compilation.

This commit is contained in:
Patrick 2024-11-14 10:04:10 +01:00
parent 5f0e6e9726
commit 81f4c33508
2 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,10 @@ public:
ScriptValue& operator=(const ScriptValue&) = default;
ScriptValue& operator=(ScriptValue&&) MIJIN_NOEXCEPT = default;
std::partial_ordering operator<=>(const ScriptValue& other) const = default;
// MSVC doesn't like this :/ (internal compiler error)
// std::partial_ordering operator<=>(const ScriptValue& other) const = default;
bool operator==(const ScriptValue& other) const MIJIN_NOEXCEPT { return base_ == other.base_; }
bool operator!=(const ScriptValue& other) const MIJIN_NOEXCEPT { return base_ != other.base_; }
[[nodiscard]]
bool isUndefined() const noexcept

View File

@ -9,6 +9,7 @@
#include <span>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <variant>
#include "../container/optional.hpp"
#include "../internal/common.hpp"