Skip to main content

Practice ยท 3 of 3

The Greedy Forwarding Constructor

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.

Difficulty: advanced

Back to lesson: Practice: Forwarding Mechanics