C++20: consteval and constexpr Functions -- Daniel Lemire
Optimizing compilers seek try to push as much of the computation as possible at compile time.
C++20: consteval and constexpr Functions
by Daniel Lemire
From the article:
In modern C++, you can declare a function as ‘constexpr’, meaning that you state explicitly that the function may be executed at compile time.
The constexpr qualifier is not magical. There may not be any practical difference in practice between an inline function and a constexpr function, as in this example:
inline int f(int x) { return x+1; } constexpr int fc(int x) { return x+1; }

In my previous post I showed how to compile {fmt} as a C++20 module with clang. Although taking only two commands, ideally it’s not something you should be doing manually. So in this post, I’ll talk about module support in CMake, everyone’s favorite not a build system.
This post is an updated version of an article from five years ago, now that everything Sy talked about is in the standard and implemented in Visual Studio.
The Broker Pattern structures distributed software systems that interact with remote service invocations. It is responsible for coordinating the communication, its results, and exceptions.
In this article, I cover Default constructuctible lambdas.