based on this thread it is still not working although i changed to ISO C++17 Standard (/std:c++17)
in c++ -> language in VS 2019 config.
also try to set :
#ifdef _WIN32
#define _HAS_CXX17 1
#endif
it worked but to day it gave me compilation error all over :
warning C4005: '_HAS_CXX17': macro redefinition
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\vcruntime.h(277): message : see previous definition of '_HAS_CXX17'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\algorithm(315,10): error C2061: syntax error: identifier '_Enable_if_execution_policy_t'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\algorithm(315,86): error C2988: unrecognizable template declaration/definition
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\algorithm(315,86): error C2059: syntax error: '='
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\algorithm(337,10): error C2061: syntax error: identifier '_Enable_if_execution_policy_t'
is there any solution to this ?