|
Boost : |
Subject: Re: [boost] [convert] Now with Boost.Parameter interface.
From: Vladimir Batov (batov_at_[hidden])
Date: 2009-07-01 02:32:53
From: "David Abrahams" <dave_at_[hidden]>
> ... What's wrong with
>
> int i = convert<int>::from(str, 0, locale_ = new_locale, throw_ = true);
I personally to not feel there is anything wrong per se with the above. The
reason I did not pursue it was that it introduces a limit on the number of
the parameters and I did not see it offering any major advantages to balance
that shortcoming over the supported
int i = convert<int>::from(str, 0)(locale_ = new_locale)(throw_ = true);
On the other hand the supported interface seems to scale considerably better
and is no longer to type:
int i = convert<int>::from(str, 0)(locale_ = new_locale)(throw_ = true);
int i = convert<int>::from(str, 0, locale_ = new_locale, throw_ = true);
V.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk