在安装VS2017并使其编译基于CMake的项目后,它在VS标头xlocnum中遇到编译问题:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xlocnum
行:1611:
_Bufsize += _CSTD abs(_Ptwo) * 30103L / 100000L;
出现错误消息:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xlocnum(1611): error C2589: '(': illegal token on right side of '::'
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xlocnum(1599): note: while compiling class template member function '_OutIt std::num_put<wchar_t,_OutIt>::do_put(_OutIt,std::ios_base &,_Elem,long double) const'
with
[
_OutIt=std::ostreambuf_iterator<wchar_t,std::char_traits<wchar_t>>,
_Elem=wchar_t
]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xlocnum(1857): note: see reference to class template instantiation 'std::num_put<wchar_t,std::ostreambuf_iterator<wchar_t,std::char_traits<wchar_t>>>' being compiled
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xlocnum(1611): error C2062: type 'unknown-type' unexpected
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xlocnum(1611): error C2059: syntax error: ')'
有什么想法吗?