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!

C & C++

!cpp@lemmy.ml

Create post

Community stats

  • 19

    Monthly active users

  • 73

    Posts

  • 41

    Comments

Community moderators