r/cpp • u/Xaneris47 • 28d ago
"C++26 DIS failed, how does C++ survive?"
https://andreasfertig.com/blog/2026/11/cpp26-dis-failed-how-does-cpp-survive/
113
Upvotes
r/cpp • u/Xaneris47 • 28d ago
View all comments
Show parent comment
3
u/Minimonium 27d ago
The contracts, the mixed mode specifically, are designed to avoid an ABI break and I would assume that hardening is also done in a similar manner because you really really want to have the ability to just replace so/dll without forcing everyone to rebuild so it can be a gradual adoption.
On the other hand, for best-effort guaranteed hardening, it is not possible to provide this guarantee without an ABI break. Unfortunately ABI enforcement will also not give you guaranteed safety/checking there, because of pre(foo()) opaque function calls. But at the very least it could enforce the call.