Explore C++ class design principles and best practices in this comprehensive conference talk from ACCU 2022. Delve into the evolution of class design rules, from the Rule-of-Three to modern C++11 changes. Learn about object roles such as Value, Relation, Manager, and Subject, and how they influence special member function definitions. Master essential concepts including the Rule of Zero, Rule of Five/Six, Rule of DesDeMovA, and the new Rule of (Unique) Three. Gain insights on consciously designing class types and combining member variables safely. Discover the use of relation objects for "Fernwirkung" in expressions and understand when to apply relation types securely. Enhance your C++ programming skills and create more robust, error-free class designs with guidance from expert Peter Sommerlad.
Overview
Syllabus
What Classes We Design and How - Peter Sommerlad - ACCU 2022
Taught by
ACCU Conference