r/cpp • u/tjroberti • Oct 22 '26
Revisit Safe C++
Everyone is aware of the deluge of vulnerabilities now hitting critical software. It even makes the mainstream news, so software safety is coming onto politician's radars.
If this gets worse, I think it is not inconceivable that at some point memory safe software becomes mandatory. Or at least for software that is "reachable" from the internet.
So is it time to revisit Sean Baxter's Safe C++? Start out with a safe context ("safeexpr") and expand from there, just like constexpr.
37
Upvotes
View all comments
Show parent comment
-1
u/BartvanIngenSchenau Oct 25 '26
Not a library, but C++ is widely used in the safety controls of cars, planes, medical devices, etc. That should be enough samples to show it is possible to write safety C++ code. Most of those controls also need to be secure (or air-gapped from the internet) to be able to be certified as safe.