C++ Core Guidelines: More Rules for Expressions

I know this post's headline is a bit boring: More Rules for Expressions. Honestly, this post is about code hygiene because I will mainly write about pointers.

Read more
Views: 14770

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 not guaranteed. I know that's a lot to digest. Let's start.

Read more
Views: 28902

Stay Informed about my Mentoring



English Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Course: The All-in-One Guide to C++20

Course: Master Software Design Patterns and Architecture in C++

Subscribe to the newsletter (+ pdf bundle)

All tags

Blog archive

Source Code


Today 4605

Yesterday 4550

Week 4605

Month 26279

All 12104488

Currently are 149 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments