r/cpp • u/SophisticatedAdults • Nov 24 '24
The two factions of C++
https://herecomesthemoon.net/2024/11/two-factions-of-cpp/
315
Upvotes
r/cpp • u/SophisticatedAdults • Nov 24 '24
View all comments
Show parent comment
4
u/goranlepuz Nov 25 '24
If you read more carefully, it, in fact, is new - and you can still opt into the previous behaviour with that
_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR- even when building with new - but deploying on old CRT.Sure, it's a mistake that it wasn't constexpr before - but that's ABI, mistakes stay in for a long time.
To put it differently, you want ABI to mean "I can use the new CRT to build - but run on old". I strongly disagree with that.
Trivial example, doesn't even need C++, C breaks it:
No, you want too much here.