Skip to content

Commit

Permalink
fix issue with std::result_of being removed in c++20 (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese authored Oct 2, 2023
1 parent 9268409 commit 3156b4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/SocketIOLib/SocketIOLib.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}
}

0 comments on commit 3156b4a

Please sign in to comment.