Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on C++ Registry Pattern

$
0
0
"it invokes undefined behavior ... no guarantee these run" Your quote doesn't say "undefined behavior", it says "implementation-defined [whether it works or not]", it's a different thing. We've been doing exactly this, and didn't have any issues. The only tricky part is that the registry itself must be a function-local static, to avoid static init order fiasco.

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>