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.
Overview
Syllabus
The C++ Rvalue Lifetime Disaster - Arno Schödl - [CppNow 2021]
Taught by
CppNow