3 ms·
Does the C++ spec guarantee initialization order? Or is any application that depends on it relying on undefined behaviour?
by londons_explore 4y ago
Does the C++ spec guarantee initialization order? Or is any application that depends on it relying on undefined behaviour?
- theg5prank 4y agoThere's no mandated order between compilation units. It's a problem significant enough to have its own snarky name: the Static Initialization Order Fiasco https://en.cppreference.com/w/cpp/language/siof https://en.cppreference.com/w/cpp/language/siof