progschj / ThreadPool

A simple C++11 Thread Pool implementation
zlib License
7.63k stars 2.21k forks source link

Compile Error on C++17 #89

Open yqs112358 opened 2 years ago

yqs112358 commented 2 years ago

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

Error C4996 'std::result_of<Raw_HttpPost:: (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 commented 2 years ago

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