this post was submitted on 01 Dec 2020
1 points (100.0% liked)

C & C++

885 readers
1 users here now

founded 5 years ago
MODERATORS
 

Combining many actions in a single C++ expression is a bad practice, as such code is hard to understand, maintain, and it is easy to make mistakes in it. For example, one can instill a bug by reconciling different actions when evaluating function arguments. We agree with the classic recommendation that code should be simple and clear. Now let's look at an interesting case where the PVS-Studio analyzer is technically wrong, but from a practical point of view, the code should still be changed.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here