Expressing Implementation Sameness and Similarity in Modern C++
summary
Examines which C++ features actually express implementation sameness vs. create lasting interface coupling, comparing templates, CRTP, mixins, and C++23 deducing this with concrete examples (owning collections, element-wise comparators, qualifier/name forwarding). Shows where customization points and allocators belong (why shared_ptr’s allocate_shared is correct and unique_ptr’s design is problematic), highlights Concepts accidentally coupling code, and argues which techniques reduce cognitive load and which introduce fragile, hard-to-remove coupling.
AI-written summary · about
chapters (18)
- 0:00Introduction and thanks
- 1:07Talk overview and goals
- 12:07Interface vs implementation sameness
- 17:45Classic C++ polymorphism basics
- 19:10Templates and implementation sameness
- 24:30Mixins and CRTP explained
- 33:26CRTP mechanics and trade-offs
- 36:13C++23 deducing this limitations
- 39:03Reflection and code repetition
- 41:54Qualifier forwarding in C++
- 46:12Name forwarding and encapsulation
- 51:17Don't repeat yourself principles
- 54:26Allocator customization points
- 1:00:01Unique pointer design flaws
- 1:05:36Concepts and interface coupling
- 1:08:26Other sameness expression tools
- 1:11:13Q&A session start
- 1:20:31Closing remarks and personal note
