C++ static data members initialization -
1) true static data members of classes initialized before main() called?
2) true "static initialization order fiasco" can happen if static data member of class initialization code uses global static variable of other translation unit?
where can read more it? couldn't find answer in 2003 standard of c++.
thanks lot.
1) true static data members of classes initialized before main() called?
yes initialized before program starts executing.
2) true "static initialization order fiasco" can happen if static data member of class initialization code uses global static variable of other translation unit?
yes, along happens every other thing initialized before main()
execution.