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

[C++20] Replace result_of with invoke_result when using C++ > 17 #400

Merged
merged 2 commits into from
Jan 6, 2022

Conversation

mtfishman
Copy link
Member

For version of C++ greater than 17, replace the use of result_of with invoke_result since it is removed in C++20.

@mtfishman
Copy link
Member Author

@the-hampel @Wentzell

@Wentzell
Copy link

Wentzell commented Jan 6, 2022

Are you sure that __cpp_lib_is_invocable >= 201703 checks the availability of std::invoke_result ?

@Wentzell
Copy link

Wentzell commented Jan 6, 2022

Ok yes it does, c.f. https://en.cppreference.com/w/cpp/feature_test
Loogs good! Thank you @mtfishman

@mtfishman mtfishman merged commit 167aaff into v3 Jan 6, 2022
@mtfishman mtfishman deleted the cpp20 branch January 6, 2022 22:11
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.

None yet

2 participants