logoalt Hacker News

platinumradtoday at 5:44 AM0 repliesview on HN

I haven't written C++ in a long time, but isn't the issue here that the initialization order of globals in different translation units is unspecified? Lazy initialization avoids that problem at very modest cost.