Logo

Blog


C++

How to achieve the rule of zero - an example

In today's post, I want to talk about the rule of zero and give an example of how to achieve it. [...]
C++

A destructor, =default, and the move operations

Today's post is a bit special in two ways. First, I continue to talk about move semantics, and this is the first time that I have the same topic for my monthly post and the [...]
C++

Why you should use std::move only rarely

In today's post, I try to tackle a topic that comes up frequently in my classes, move semantics, and when to use std::move. I will explain to you why not say std::move yourself [...]
C++

C++20 - Filling blanks

What do you know about default parameters in C++? Well, C++20 introduced new elements that can be seen like default parameters. [...]
C++

The difference between static_assert and C++20's requires

Over this year, I gave various presentations and classes about C++20's Concepts. In today's post, I like to discuss the difference between a static_assert and a Concept, or [...]
C++

C++20 Modules: Reachability and Visibility

C++20's modules are one feature of the big four, supposed to influence how we write C++ code in a huge way. One expectation we discussed in (C++20 Modules: The possible speedup) [...]
C++

C++20 Modules: Controlling your interfaces

C++20's modules are one feature of the big four, supposed to influence how we write C++ code in a huge way. One expectation we discussed in the last post (C++20 Modules: The [...]
C++

C++20 Modules: The possible speedup

C++20's modules are one feature of the big four, supposed to influence how we write C++ code in a huge way. One expectation I hear nearly all the time is the improvement of [...]
C++

C++20 Dynamic Allocations at Compile-time

You may already have heard and seen that C++20 brings the ability to allocate dynamic memory at compile-time. This leads to std::vector and std::string being fully constexpr in [...]
C++

C++20: A neat trick with consteval

Among the various improvements of C++20 are changes to constexpr, namely a new keyword consteval. In this post, I like to dig into consteval a bit and see what we can do with this [...]