|
Boost : |
Subject: [boost] [convert] Is it possible to schedule a review for the proposed Boost.Convert?
From: Vladimir Batov (batov_at_[hidden])
Date: 2009-03-20 16:45:48
Is it possible to schedule a review for the Boost.Convert?
Thanks,
Vladimir.
From: <Vladimir.Batov_at_[hidden]>
Sent: Monday, March 02, 2009 11:02 AM
Subject: [convert] Version in the Vault ready for review.
> After listening to many views, opinions, suggestions I've re-done
> boost::convert and would like it scheduled for a review.
>
> It is certainly nowhere as MPL and still not perfect. However, I believe
> it will be very useful to many developers (like me) not satisfied with
> lexical_cast and not (yet?) needing (or ready for) something like upcoming
> Spirit 2.0.
>
> Overall, after weighing all pros and cons, I am reasonably happy with the
> current interface and implementation. It does not implement all that have
> been discussed and suggested. It is most unlikely implemented the way some
> would like it to see. However, I had to make choices I felt comfortable
> with and I feel the current interface is minimal, readable and allows for
> further growth.
> ...
> The current interface can be summed up with as little as
>
> int i = convert<int>::from(str); // Throws on failure
> int i = convert<int>::from(str, -1); // Returns -1 on failure
> ...
> If/when we decide to extend that by incorporating, say, Boost.Parameter
> and/or Spirit, then it might be as
>
> int i = convert<int>::from(str)(radix_ = 10, more_parm_ = ...);
> int i = convert<int>::from(str)(some Spirit related stuff);
> ...
> Thank you everyone who participated in the lexical_cast/convert
> discussions. Your views, opinions, suggestions were very helpful and
> educating and are very much appreciated. I hope I did not forget anyone in
> the "acknowledgements" list.
>
> The file called boost-string-convert.zip can be found in the Vault at
> http://www.boostpro.com/vault/.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk