Are static class members guaranteed to be initialized before `main` is called?
问题 Is there any guarantee that static class members are initialized before main is called? 回答1: I think no : [C++03: 3.6.2/3]: It is implementation-defined whether or not the dynamic initialization (8.5, 9.4, 12.1, 12.6.1) of an object of namespace scope is done before the first statement of main . If the initialization is deferred to some point in time after the first statement of main , it shall occur before the first use of any function or object defined in the same translation unit as the