ThreadPool icon indicating copy to clipboard operation
ThreadPool copied to clipboard

Compile Error on C++17

Open yqs112358 opened this issue 5 years ago • 1 comments

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

yqs112358 avatar Aug 21 '21 14:08 yqs112358

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

CodingReading avatar Sep 02 '21 09:09 CodingReading