The function std::string to_string(int val); does not declared for the fundamental type int. So the compiler issues errors that the use of the function is ambiguous. Header <string> contains the following declarationsinline string to_string(_Longlong _Val);inline string to_string(_ULonglong _Val);inline string to_string(long double _Val);where _Longlong and _ULonglong are defined as#define _LONGLONG __int64#define _ULONGLONG unsigned __int64So then there is a callint x = 42;std::string s = to_string( x );the compiler issues errors.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results