Explore the intricacies of declarations in C++ through this comprehensive conference talk from CppCon 2022. Delve into the structure of declarations, understanding the differences between type and non-type specifiers, and learn how the compiler interprets them. Discover how a declaration's context affects its meaning, including the use of the typename keyword in templates and the impact of type deduction on reference declarations. Gain clarity on confusing aspects of declarations, such as when initializers are required and how to distinguish between rvalue and forwarding references. Leave with a deeper understanding of how to write precise declarations and interpret compile-time error messages effectively. Benefit from the expertise of Ben Saks, chief engineer at Saks & Associates and ISO C++ Standards committee member, as he shares insights gained from years of experience in C++ development and embedded systems.
Overview
Syllabus
Back to Basics: Declarations in C++ - Ben Saks - CppCon 2022
Taught by
CppCon