
30 Sep
2011
30 Sep
'11
5:13 p.m.
On Fri, Sep 30, 2011 at 6:54 PM, Stewart, Robert <Robert.Stewart@sig.com> wrote:
I think it is reasonable to capture to_string() as a standard, extrinsic function template that returns a std::string from T. Each T must supply a specialization that does the right thing, of course,
I was expecting it to be a wrapper around lexical_cast.
stoi(), stoll(), stof(), stod() seem less useful, though providing a portable C++03 implementation wouldn't be bad.
Don't those functions require std::string as input? I'd be nice to have generic variants. Olaf