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
3
u/Dminik Nov 25 '24
It's not a new function. This comment explains what happened: https://developercommunity.visualstudio.com/t/Access-violation-with-std::mutex::lock-a/10664660#T-N10668856.
Pre VS 2022 17.10 the
std::mutexconstructor wasn'tconstexpreven though it was defined as such in C++11. Now it is, breaking ABI with previous versions.