From 81f4c3350816f9479727b59c9f1a9be7e6ae0038 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Thu, 14 Nov 2024 10:04:10 +0100 Subject: [PATCH] Fixed windows compilation. --- source/mijin/types/script_value.hpp | 5 ++++- source/mijin/util/iterators.hpp | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/mijin/types/script_value.hpp b/source/mijin/types/script_value.hpp index d0d5efa..2ae6729 100644 --- a/source/mijin/types/script_value.hpp +++ b/source/mijin/types/script_value.hpp @@ -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 diff --git a/source/mijin/util/iterators.hpp b/source/mijin/util/iterators.hpp index fd08e84..36023de 100644 --- a/source/mijin/util/iterators.hpp +++ b/source/mijin/util/iterators.hpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "../container/optional.hpp" #include "../internal/common.hpp"