
21 Sep
2004
21 Sep
'04
12:35 p.m.
Vladimir Prus wrote:
So every library which uses lexical_cast would have to provide the 'imbue' and store the locale everywhere? I think per-thread global variable is better.
Not if you want the libraries to use different locales.
Nope, there's only one global locale, it's not per-thread.
This is unspecified. Some implementations maintain a per-thread locale.