by physicsguy · 2y ago · 0 comments
It really is a language where if you got 5 different people to write a solution to something you'd get 5 wildly different answers.
Like sure, volatile integers are basically just atomic variables with easier syntax... if you are on x86-64 and using MSVC. Otherwise no they really aren't.
Despite all this complexity, C++ 23 has problems with mistakenly uninitialized variables and still lacks a coherent strategy to do deferred initialization correctly.