Exercise
Let's test your knowledge of smart pointers with this exercise.
We'll cover the following
Problem statement
Fix the following code with smart pointers:
const
rvalue reference should fail.
Make sure that the following function cannot be called with rvalue references, but it can be called with lvalues and lvalue references.
Get hands-on with 1400+ tech skills courses.