C++ Core Guidelines: Accessing Objects in a Hierarchy
There are nine rules to access objects in class hierarchies. Let’s have a closer look.
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 689 entries already.
There are nine rules to access objects in class hierarchies. Let’s have a closer look.
I needed three posts to present the 20 rules for class hierarchies in the C++ core guidelines. Here are the seven remaining rules.
I have prepared the pdf bundle. To get it is quite simple.
In the last post, I started our journey with the rules of class hierarchies in modern C++. The first rules had a pretty general focus. This time, I will continue our journey. Now, the rules have a closer focus.
Let’s talk in this post about rules for class hierarchies in general and in particular. The C++ core guidelines have about thirty rules; therefore, I have a lot to discuss.
I can not think about modern C++ without lambda expressions. So my wrong assumption was that there are many rules for lambda expressions. Wrong! There are fewer than ten rules. But as ever I learned something new.
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.
This post will be about comparisons, swap, and hash. That means I conclude with his post my treatise about default operations rules in C++.
The rules for copy and move are pretty obvious. But before I describe them I have to write about the two remaining rules for constructors. They are about delegating and inheriting constructors.
Do you want to reach the next C++ level? Here are my open C++ seminars in the first half of 2018. Embedded Programming with C++: 16.01 – 18.01 C++11 and C++14: 13.03 – 15.03 Multithreading with modern C++: 08.05 – 09.05 I’m also happy to give the seminars on-site or in English. For further details […]