Skip to content

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

Merged
mtfishman merged 2 commits into
v3from
cpp20
Jan 6, 2022
Merged

[C++20] Replace result_of with invoke_result when using C++ > 17#400
mtfishman merged 2 commits into
v3from
cpp20

Conversation

@mtfishman

Copy link
Copy Markdown
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
Copy Markdown
Member Author

@the-hampel @Wentzell

@Wentzell

Wentzell commented Jan 6, 2022

Copy link
Copy Markdown

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

@Wentzell

Wentzell commented Jan 6, 2022

Copy link
Copy Markdown

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.

2 participants