⚡ Build the skills to land top-paying quant jobs. Offer ends in 23d 14h 03m 07s23 days 14 hours 3 minutes 7 seconds.
⚡ Build the skills to land top-paying quant jobs. Offer ends in 23d 14h 03m 08s23 days 14 hours 3 minutes 8 seconds.

Sign in to watch this lesson
Value Categories, Move and Perfect Forwarding · 3:37
A function template taking a forwarding reference matches almost any argument exactly, so in overload resolution it beats promotions, added const and derived-to-base conversions. We watch it steal a short from an int overload, hijack copying a non-const Person and a derived class's copy, then fix it with a C++20 requires-clause.