[LLVMdev] Integer to string

Sebastian Redl sebastian.redl at getdesigned.at
Wed Oct 12 12:30:22 PDT 2011


On 12.10.2011, at 16:54, Howard Hinnant wrote:

> 
> string to_string(int val);
> string to_string(unsigned val);
> string to_string(long val);
> string to_string(unsigned long val);
> string to_string(long long val);
> string to_string(unsigned long long val);
> string to_string(float val);
> string to_string(double val);
> string to_string(long double val);
> 
> The only place I know of in current use where they are not implemented is Apple's v4.2 libstdc++.  I believe they've been in gcc and VC++ for several years.  They are also in libc++.

VC++ only has had them since VS2010, and they're quite broken: too few overloads lead to ambiguity errors when doing very reasonable things.

Sebastian



More information about the llvm-dev mailing list