Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies and pitfalls of rvalue references in C++ through this conference talk from CppNow 2021. Delve into the original purpose of rvalue references for efficient object moving and their use in the C++ standard library. Examine how the language itself violates assumptions about rvalue reference lifetimes, leading to potential memory corruption issues. Learn about problematic scenarios involving const& bindings and temporary lifetime extension. Discover a library-only approach to mitigate these problems and consider a proposal for addressing these issues at the language level. Gain insights from Arno Schödl, an experienced software architect, as he shares real-world examples and solutions to these complex C++ challenges.