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.

Before C++17

Using enable_if

In the previous solution (pre C++17) std::enable_if had to be used:

Get hands-on with 1400+ tech skills courses.