Skip to main content

Practice · 3 of 3

The Greedy Forwarding Constructor

CHALLENGE
Difficulty: advanced+25 XP

The forwarding constructor in the starter hijacks direct-initialization copies. Constrain it with a requires clause so Tracked c{src}; routes to the **copy** constructor, while Tracked d("placed"); still forwards.

Back to lesson: Practice: Forwarding Mechanics