$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [convert] Now with Boost.Parameter interface.
From: Vladimir Batov (batov_at_[hidden])
Date: 2009-05-08 18:47:31
> Scott McMurray wrote:
> ...
> I really don't like the idea of global state for this.
I agree.
> 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);
Yes, that seems very sensible and seemingly straightforward with
Boost.Parameter argument packs. I'll try playing and implementing the idea.
Thanks,
V.