Boost logo

Boost :

Subject: Re: [boost] [convert] Now with Boost.Parameter interface.
From: Emre Turkay (emreturkay2_at_[hidden])
Date: 2009-05-11 02:24:25


On Fri, May 08, 2009 at 04:39:19PM -0400, Scott McMurray wrote:
> Making reusable "format packs" would be nice, though. Perhaps
> instances of the convert class should be allowed, so you could do
> something like this?
>
> convert<int> myconvert((locale_ = new_locale, throw_ = true));
> int i = myconvert.from(str1, 0);
> int j = myconvert.from(str1, 0);

This is fine, too.

emre


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