- Solution
In this lesson, we will look at the solution to using assertations to ensure that the algorithm only accepts natural numbers.
We'll cover the following...
We'll cover the following...
Example
Explanation
The static_assert operator and the predicate std::is_integral<T>::value enable us to check at compile time whether or not T is an ...