-
Notifications
You must be signed in to change notification settings - Fork 152
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 build for C++20, Fix #53 #54
base: master
Are you sure you want to change the base?
Conversation
C++20 removed the deprecated std::result_of in favor of std::invoke_result. Switch between usage of those depending on the cpp_lib_is_invocable feature test macro. See: - https://en.cppreference.com/w/cpp/types/result_of - https://en.cppreference.com/w/cpp/feature_test#Library_features
Hi, I need this P.R. merged to use |
please consider merging this pr |
If you use vcpkg then this patch is being applied care of microsoft/vcpkg#27167 |
Just lex it and print the tokens, since that's the only thing we can print atm. Run this in CI as a sanity check. I was going to use clipp for cmdline parsing, but it's broken as of C++20: muellan/clipp#53. It also seems to be unmaintained, the PR that fixes it has been open for >2 years: muellan/clipp#54
Just lex it and print the tokens, since that's the only thing we can print atm. Run this in CI as a sanity check. I was going to use clipp for cmdline parsing, but it's broken as of C++20: muellan/clipp#53. It also seems to be unmaintained, the PR that fixes it has been open for >2 years: muellan/clipp#54 Will need to look into finding a new cmdline parsing library.
the patch still doesn't fix the compilation. i still get this error with c++20
|
@danyhm That's a different error that you have. Maybe you can try https://github.com/GerHobbelt/clipp as that seems to be more up to date. |
As reported in #53:
C++20 removed the deprecated std::result_of in favor of
std::invoke_result.
Switch between usage of those depending on the cpp_lib_is_invocable
feature test macro.
See:
An alternative solution would be to use decltype instead of either of those two templates,
if you prefer that I'd be happy to update my PR.