« Return to Thread: [convert] Now with Boost.Parameter interface.

Re: [convert] Now with Boost.Parameter interface.

by Vladimir Batov :: Rate this Message:

Reply to Author | View in Thread

> 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.


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: [convert] Now with Boost.Parameter interface.