Entries by Rainer Grimm

C++ Core Guidelines: Rules for Expressions

Today’s post is about expressions. You should avoid complicated expressions, know the precedence rules for arithmetic or logical expressions, and know the order of evaluation of expressions. The main reasons for undefined behavior are having the wrong precedence rules for expressions in mind or assuming an evaluation order for expressions that is just wrong or […]

Clean C++

I want to make a short detour from my long series of posts about the C++ Core Guidelines. I read the excellent book “Clean C++” in the last few days and I cannot hesitate to write a review. Here is my review.