The Truth about "Raw Pointers Removed from C++"

Five bloggers have teamed up around the world to deliver an April Fool's joke to readers about eliminating pointers. The response to the five articles was huge and ranged from "it took so long" to "that can not be true".  Here again the truths, half-truths and untruths: No New New: Raw Pointers Removed from C++.  You can even read this post in German or in Russian

Read more
Add CommentViews: 15964

No New New: Raw Pointers Removed from C++

Two weeks ago, the ISO C++ standard meeting took place in Jacksonville.  Today I want to make a short detour and write about the revolutionary decision that was made in the Jacksonville meeting. Additionally, I refer to the post C++ Will no Longer Have Pointers by Fluent C++. The standard committee decided that pointers will be deprecated in C++20 and will with very high probability be removed in C++23.

Read more
Comments 5Views: 52928

C++ Core Guidelines: Rules to Performance

Before I write about the rules of performance I will do a very simple job. Accessing the elements of a container one by one.

Read more
Add CommentViews: 7375

Which pdf bundle should I provide? Make your choice!

Now, it's time to choose the next pdf bundle? You will get all posts, all source files, and a cmake file to the chosen topic.

Read more
Add CommentViews: 4030

C++ Core Guidelines: Rules to Statements and Arithmetic

Today, I will write about the remaining rules to statements and the arithmetic rules. If you don't follow the arithmetic rules, undefined behaviour may kick in.

Read more
Add CommentViews: 3487

C++ Core Guidelines: More about Control Structures

My last German post C++ Core Guidelines: To Switch or not to Switch, that is the Question got a lot of attention. To use a hash table instead of a switch statement seems to be a highly emotional topic. So I change my original plan. Today, I will present different kinds of control structures. I will start with the if and switch statements, continue with the hash table, and end with dynamic and static polymorphism. Additionally, I will mark a few remarks about performance and maintainability. 

Read more
Add CommentViews: 11839

C++ Core Guidelines: To Switch or not to Switch, that is the Question

At first, I have to apologize. Today, I wanted to continue my journey through the C++ Core Guidelines with the arithmetic expressions. In my seminar in this week, we had a long discussion about switch statements in C/C++ and how they become totally unmaintainable. Honestly, I'm not a fan of the switch statements and I have to say: there is life after the switch statements.

Read more
Add CommentViews: 7218

C++ Core Guidelines: Rules for Statements

Before I continue with the roughly 15 rules for statements, let me finish the two rules for expressions. Both rules help you to protect your program from undefined behaviour. 

Read more
Add CommentViews: 3510

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: 5238

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 1434

All 1396789

Currently are 173 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments