std::variant is a library addition in C++17 for sum types, and std::visit is one of the ways to process the values in a std::variant.
I have written about the code style of having “trailing return types everywhere” in the past. My advice back then was to use them only when necessary. I might have […]
Two weeks ago, I attended the ACCU Conference in Bristol again, and again it was a blast. ACCUConf is by far the most interesting and enjoyable conference I have attended […]
We often use standard containers as members of our classes. In a lot of cases, the semantics we actually need is not equivalent to the semantics the containers provide.
Contrary to Sunday’s orchestrated April Fool’s posts, raw pointers are not going anywhere. However, there are some things in those posts that are based on reality. I’ll go into a […]
There’s some great news coming from the C++ standards committee: Raw pointers are gone – or rather will be in C++20.
I have had a lot of questions and discussions lately about the necessity for a code of conduct at conferences. I boycott any conference that does not have one or […]
In my last post, I wrote about forward declarations for normal classes. Today, I give you some information about forward-declaring templates and enums.
As promised last week in my post about strange include techniques, I will go into reducing compile time dependencies. Reducing dependencies by shifting them from headers to source files can […]
After having had to clean up some unusual #include techniques, I’ll put together some advice on how not to use #include – and how to use it.