- Exercise
Let's do a quick exercise on class templates.
We'll cover the following
Problem Statement
Uncomment the final assignment doubleArray = strArray
in line 41 and use the function static_assert
in combination with the function std::is_convertible
to catch the erroneous instantiation at compile-time.
Get hands-on with 1400+ tech skills courses.