From 083b8d6c846cfdf75abb1fae481a3eeb25c13c56 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 10 Apr 2023 00:08:32 +0200 Subject: Core/Misc: Fix build with libc++ Closes #28909 --- src/server/game/AI/SmartScripts/SmartScriptMgr.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/server/game/AI/SmartScripts') diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h index 31bb3c82161..9406fbedb00 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h @@ -21,6 +21,7 @@ #include "Define.h" #include "ObjectGuid.h" #include "WaypointDefines.h" +#include "advstd.h" #include #include #include @@ -1645,15 +1646,15 @@ struct SmartScriptHolder // Default comparision operator using priority field as first ordering field std::strong_ordering operator<=>(SmartScriptHolder const& right) const { - if (auto cmp = priority <=> right.priority; std::is_neq(cmp)) + if (std::strong_ordering cmp = priority <=> right.priority; advstd::is_neq(cmp)) return cmp; - if (auto cmp = entryOrGuid <=> right.entryOrGuid; std::is_neq(cmp)) + if (std::strong_ordering cmp = entryOrGuid <=> right.entryOrGuid; advstd::is_neq(cmp)) return cmp; - if (auto cmp = source_type <=> right.source_type; std::is_neq(cmp)) + if (std::strong_ordering cmp = source_type <=> right.source_type; advstd::is_neq(cmp)) return cmp; - if (auto cmp = event_id <=> right.event_id; std::is_neq(cmp)) + if (std::strong_ordering cmp = event_id <=> right.event_id; advstd::is_neq(cmp)) return cmp; - if (auto cmp = link <=> right.link; std::is_neq(cmp)) + if (std::strong_ordering cmp = link <=> right.link; advstd::is_neq(cmp)) return cmp; return std::strong_ordering::equal; } -- cgit v1.2.3