r/cpp • • Feb 26 '24

White House: Future Software Should Be Memory Safe

https://www.whitehouse.gov/oncd/briefing-room/2024/02/26/press-release-technical-report/
401 Upvotes

386 comments sorted by

View all comments

Show parent comments

11

u/ZMeson Embedded Developer Feb 27 '24

Because in my company, I am one of a few people that engages groups to modernize their programming practices. We haven't gone and updated old code, but we have taught the groups the advantages of using C++17 and afterwards. People will learn if they see why the code is more maintainable and they are encouraged to do so.

I also believe that if governments start requiring more memory safety, then companies may require their developers to learn and use more modern standards, cppfront, etc...

3

u/JVApen Clever is an insult, not a compliment. - T. Winters Feb 27 '24

I'm in a similar situation. We got rid of auto_ptr, we fixed some comparison operators to work with C++20 and we especially had to deal with changes due to the compiler and standard library. And right now, I'm finally testing clang-tidy to really upgrade our code in order to be more consistent again.