Practice ยท 3 of 3
Lifetime Extension โ and Where It Fails
CHALLENGE
Difficulty: advanced+25 XP
Returning a reference to a temporary can never be safe, so extended() must back its reference with *static* storage. And holderTrap() returns the value a correct Holder would have captured **by value** instead of by reference.
Press Submit to check your solution.
Back to lesson: Practice: Lifetime Clinic