...

/

Assertions at Compile Time

Assertions at Compile Time

In this lesson, we will learn about assertions at compile time in modern C++.

We'll cover the following...

static_assert is the tool in modern C++ used to make our code safe.

static_assert

The usage of static_assert is quite easy. static_assert requires an expression and a string. The expression must be ...