Hacker News new | ask | show | jobs
by londons_explore 1239 days ago
Does the C++ spec guarantee initialization order? Or is any application that depends on it relying on undefined behaviour?
1 comments

There'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