From deac3476b07505c68045a6782813977a87880aaf Mon Sep 17 00:00:00 2001 From: DeadMouse Date: Mon, 9 Jan 2023 11:27:16 +0200 Subject: [PATCH] Core/Misc Fixed build with boost 1.74 (#28679) --- src/server/game/Combat/ThreatManager.cpp | 3 ++- src/server/game/Maps/Map.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/server/game/Combat/ThreatManager.cpp b/src/server/game/Combat/ThreatManager.cpp index 81640f2eca3..bc1fe368316 100644 --- a/src/server/game/Combat/ThreatManager.cpp +++ b/src/server/game/Combat/ThreatManager.cpp @@ -29,7 +29,6 @@ #include #include "Hacks/boost_1_74_fibonacci_heap.h" -BOOST_1_74_FIBONACCI_HEAP_MSVC_COMPILE_FIX(ThreatManager::threat_list_heap::value_type) const CompareThreatLessThan ThreatManager::CompareThreat; @@ -37,6 +36,8 @@ class ThreatManager::Heap : public boost::heap::fibonacci_heap #include "Hacks/boost_1_74_fibonacci_heap.h" -BOOST_1_74_FIBONACCI_HEAP_MSVC_COMPILE_FIX(RespawnListContainer::value_type) #define DEFAULT_GRID_EXPIRY 300 #define MAX_GRID_LOAD_TIME 50 @@ -81,6 +80,9 @@ struct RespawnInfoWithHandle; struct RespawnListContainer : boost::heap::fibonacci_heap> { }; + +BOOST_1_74_FIBONACCI_HEAP_MSVC_COMPILE_FIX(RespawnListContainer::value_type) + struct RespawnInfoWithHandle : RespawnInfo { explicit RespawnInfoWithHandle(RespawnInfo const& other) : RespawnInfo(other) { }