
3 May
2006
3 May
'06
6:06 p.m.
Jeff Garland wrote:
Oleg Abrosimov wrote:
and if one wants to be very modern ;-) but doesn't concern about symmetry in from_string/string_from usage : double d = 2 + from_string<double>("10.2");
This is fine too. Perfect symmetry isn't really needed.
I agree with Jeff. The string_from differs from the from_string in a fundamenal way: the former _accepts_ arguments of different types while the latter _returns_ different types. You can't overload on return types in C++. Why do you require a symmetry for asymmetrical functions? -- Alexander Nasonov Project Manager http://www.akmosoft.com