C++ Core Guidelines: Rules about Don'ts

This post is about don'ts. Here are the two most important rules of this post: Don't use std::move thoughtless and don't slice. Let's start.

Read more
Add CommentViews: 3623

C++ Core Guidelines: Rules for Conversions and Casts

What have narrowing conversion and casts in common? They are very often the source of errors; therefore, I will today write about errors.

Read more
Comments 1Views: 3762

C++ Core Guidelines: More Rules for Expressions

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

Read more
Add CommentViews: 3526

C++ Core Guidelines: Rules for Expressions

Today's post is about expressions. You should avoid complicated expressions, you should know the precedence rules for arithmetic or logical expressions, and you should know the order of evaluation of expressions. Having the wrong precedence rules for expressions in mind or assuming an evaluation order for expressions which is just wrong or not guaranteed are the main reasons for undefined behaviour. I know that's a lot to digest. Let's start.

Read more
Add CommentViews: 2387

C++ Core Guidelines: More Rules for Declarations

In this post, I will finish the rules for declarations. The remaining rules for declarations are not especially sophisticated but important for high code quality.

Read more
Comments 1Views: 3770

C++ Core Guidelines: Declarations and Initialisations

Let's continue our tour through the rules for expressions and statements in the C++ core guidelines. This post will be about declarations and initialisations. 

Read more
Add CommentViews: 4713

Clean C++

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

Read more
Comments 1Views: 12016

My Newest E-Books

Latest comments

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 41

All 895571

Currently are 194 guests and no members online

Kubik-Rubik Joomla! Extensions