From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-05-03 14:06:15
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk