13 Jan
2018
13 Jan
'18
3:14 p.m.
On 01/13/18 18:05, Peter Dimov via Boost wrote:
Andrey Semashev wrote:
I don't think the standard requires this implementation. `system_category()` may return a pointer to a global caregory instance, which is initialized before `main`.
You're not prohibited from calling system_category() before main, so it has to work.
Sure. Standard library implementeds have solved the problem of early initialization for the standard iostreams, and they can do the same for the system category instance.