mardi 21 avril 2015

Does the C++ standard require that dynamic initialization of static variables be performed in the main thread?

Does the C++ standard require that dynamic initialization of non-local static variables, be performed in the same thread that calls main()?

More specifically, in C++11, is std::this_thread::get_id() guaranteed to return the same result in static initializers and inside main()?

Aucun commentaire:

Enregistrer un commentaire