Skip to content

Conversation

wendajiang
Copy link

No description provided.

@Doralitze
Copy link

@muellan Is there any chance that this will be merged upstream? The default C++ version is now 23 and std::result_of is long gone. We really need this.

include/clipp.h Outdated
std::is_same<Ret,typename std::result_of<Fn(Args...)>::type>::value>{} );
std::is_same<Ret,
#if CLIPP_CPLUSPLUS >= 201703L
typename std::invoke_result<Fn(Args...)>::type

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using Apple Clang version 14.0.3 (C++17, C++20), this will not compile.
Shouldn't it be typename std::invoke_result<Fn, Args...> ?
One can also use the shorter version std::invoke_result_t<Fn, Args...>.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix it.

@ilya1725
Copy link

Any way this PR could be merged any time soon?

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.

4 participants