Boost logo

Boost :

Subject: Re: [boost] Boost.Convert+Boost.Parameter
From: Vladimir Batov (batov_at_[hidden])
Date: 2009-02-28 18:35:15


> From: "Jeff Flinn" <TriumphSprint2000_at_[hidden]>
> Have you thought of making convert a class templated on the destination
> type which would allow a single function 'from', ala:
>
> int i = convert<int>::from(str, (radix_ = 10, locale_= ...));
> int i = convert<int>::from(str, -1, (radix_ = 10, locale_= ...));
>
> Which reads more naturally to me in english, at least.

I think I like it. :-) Thanks. V.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk