Hacker News new | past | comments | ask | show | jobs | submit login

Web browsers use modern C++ and still have security issues. It's a step forward, but not a panacea.



to what extent? i imagine the codebases are quite...mature. and gigantic.


Everywhere. We have been using smart pointers for a long time.

Modern C++ doesn't add any memory safety protection beyond that which was already available with custom smart pointers in earlier versions of C++. In fact, I think modern C++ is less safe than earlier versions, due to new classes of potential bugs like use-after-move and the ease with which closed-over variable references in lambdas can become dangling.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: