From 3156b4a832820d9bce7ccd32d6641d98ed2bdb14 Mon Sep 17 00:00:00 2001 From: Mike Seese Date: Mon, 2 Oct 2023 12:46:57 -0700 Subject: [PATCH] fix issue with std::result_of being removed in c++20 (#393) --- Source/SocketIOLib/SocketIOLib.Build.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/SocketIOLib/SocketIOLib.Build.cs b/Source/SocketIOLib/SocketIOLib.Build.cs index eec6c8c..2835db1 100644 --- a/Source/SocketIOLib/SocketIOLib.Build.cs +++ b/Source/SocketIOLib/SocketIOLib.Build.cs @@ -72,6 +72,14 @@ public SocketIOLib(ReadOnlyTargetRules Target) : base(Target) { PublicDefinitions.Add("SIO_TLS=1"); } + + if ( + (Target.Version.MajorVersion == 5 && Target.Version.MinorVersion >= 3) || + Target.Version.MajorVersion > 5 + ) + { + PublicDefinitions.Add("ASIO_HAS_STD_INVOKE_RESULT=1"); + } } } }