
1 Jul
2009
1 Jul
'09
6:32 a.m.
From: "David Abrahams" <dave@boostpro.com>
... 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.