
8 May
2009
8 May
'09
10:47 p.m.
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.