Explore the intricacies of rvalue references in C++ and their impact on object lifetime management in this ACCU 2021 conference talk. Delve into the original purpose of rvalue references for efficient object moving and their use in the C++ standard library. Examine the unexpected violations of rvalue reference assumptions within the C++ language itself, including issues with const& binding and temporary lifetime extension. Learn about the real-world consequences of these problems, such as memory corruption, and discover a library-only approach to mitigate these issues. Consider a potential proposal for addressing these challenges in future C++ standards. Gain insights from Arno Schödl, an experienced software architect and CTO, as he shares his expertise on this critical aspect of C++ programming.
Overview
Syllabus
The C++ rvalue Lifetime Disaster - Arno Schoedl [ ACCU 2021 ]
Taught by
ACCU Conference