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

Compile Error on C++17 #89

Open
yqs112358 opened this issue Aug 21, 2021 · 1 comment
Open

Compile Error on C++17 #89

yqs112358 opened this issue Aug 21, 2021 · 1 comment

Comments

@yqs112358
Copy link

On VS2019, using C++17
At compile, it ends with fail with output below:

Error C4996 'std::result_of<Raw_HttpPost::<lambda_4e1007aebf53435f1f10672fd4899447> (void)>': warning STL4014: std::result_of and std::result_of_t are deprecated in C++17. They are superseded by std::invoke_result and std::invoke_result_t. You can define _SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.

I think it's better to adapt to C++17

@CodingReading
Copy link

std::result_of_t are deprecated in C++17,
you can define MACRO _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS

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

No branches or pull requests

2 participants