Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
londons_explore
· 3y ago · 0 comments
Does the C++ spec guarantee initialization order? Or is any application that depends on it relying on undefined behaviour?
Comments
[–]
theg5prank
3y ago
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