17 Mar
2007
17 Mar
'07
9:21 a.m.
lexical_cast<int>("1e4") == 1 // because of the way streams work of course I think that in the interests of robustness, and unless a better solution can be found, lexical_cast<> should be secialized for some types. Another solution might be to make sure that the whole string argument got consumed (rejecting things like "123 " )