Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with std::result_of being removed in c++20 #393

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

mikeseese
Copy link
Contributor

This PR fixes #392 by adding a define to tell asio to use std::invoke_result instead of std::result_of; you can see the third party reference to these here: https://github.com/chriskohlhoff/asio/blob/master/asio/include/asio/detail/type_traits.hpp#L90-L96

IIRC I did not have issues compiling for Linux on 5.2.1, so I believe the new clang16 toolchain is defaulting to a c++ standard that removed std::result_of.

@getnamo getnamo merged commit 3156b4a into getnamo:master Oct 2, 2023
@getnamo
Copy link
Owner

getnamo commented Oct 2, 2023

excellent, thanks for catching this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UE 5.3 cross-compiling for Linux - Asio std::result_of compilation error
2 participants