The mistakes mentioned include those made in mature projects maintained by good people.
We all make mistakes; and it's oftenworthwhile to review what we take for granted that we know.
Given the errors found by PVS-Studio on actual relevant FOSS projects, I would say it is a good introduction for looking into such examples, for those interested in writing proper code.
Re:Recommendations about coding in C++
by AndreyKarpov on Monday February 20, 2017 @01:27AM
(#13684844)
The fact that these are simple errors doesn't mean that these are not errors. We should understand tat they are especially noticeable when there is a small code fragment. In the code of a real application such errors can live for years. By the way, I recommend playing: http://q.viva64.com/
While it's well structured, with real-world examples, it's very basic. I'm not an excellent C++ coder by any stretch of the imagination. I make lots of mistakes. But not these. The article is fairly thorough and long, so if you're experienced you'll invest non-trivial time for little or no reward.