Subject: Re: [boost] Boost.Convert+Boost.Parameter
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2009-02-28 10:31:05
Vladimir Batov wrote:
>> From: "Vladimir Batov" <batov_at_[hidden]>
>>> int i = convert::from(str, default_ = -1, radix_ = 10, locale_= ...);
> How about
> int i = convert::from(str, -1)(radix_ = 10, locale_= ...);
> and both styles seem to coexist happily. I'd expect many people to be
> comfortable with I/O Stream-based approach. As above we'd accommodate
> all. A "unifying" compromise?
...or even better:
int i = convert::from(str, -1)[radix_ = 10, locale_= ...];
so that the "limited number of arguments" issue doesn't arise anymore.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk