Perfect Forwarding in C++11

If you’re like me, you’ve been writing C++03 for a long long time, and only recently you’ve gotten the chance to finally dive deep into C++11 and C++14.

There are many, many new features and concepts in C++11 and C++14. Some, like lambdas, are very easy to comprehend and apply based on knowledge from other languages, like JavaScript. Others, like rvalue references and perfect forwarding, well, not so much. This post will attempt to explain rvalue references and perfect forwarding from the perspective of a C++03 programmer just now coming into the C++11 world.

[Read More]