Subject: Re: [boost] Formal Review Request: Boost.Convert
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-02-20 22:00:23
On Fri, Feb 20, 2009 at 6:48 PM, Vladimir Batov <batov_at_[hidden]> wrote:
>> It looks like the static "apply" will not allow to pass additional
>> conversion parameters, except by resorting to Boost.Bind or something
>> similar. Why not simply provide operator() in the converter?
> Yes, I think it's a good idea. Will do. the 'apply' was a quick hack anyway.
>> Then having support of Boost.Parameter, we could pass some customization
>> to the converter constructor:
>> converter<int, string>(radix_ = 16, uppercase_ = true));
> I looked a Boost.Parameter and will certainly try using it somewhere. My
> hesitation with it for boost::convert is I am under impression that the set
> of acceptable parameters (radix_, etc.) has to be predefined and therefore
> cannot be extended by the user when formatting like "convert(str) >>
> std::hex" seems more flexible.
You could simply take a formatting string.
Reverge Studios, Inc.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk