With if constexpr
This section discusses the use of enable_if in pre C++17 versions and the use of if_constexpr in C++ 17.
We'll cover the following...
We'll cover the following...
Before C++17
Using enable_if
In the previous solution (pre C++17) std::enable_if had to be used:
std::is_constructible - allows us to test if a list of arguments could be used to create a given
type.
Just a quick reminder about
enable_if...