Applied Modern C++: beyond type erasure and visitor pattern - Olivia Quinet - Meeting C++ 2024
ฝัง
- เผยแพร่เมื่อ 9 ก.พ. 2025
- Applied Modern C++: beyond type erasure and visitor pattern - Olivia Quinet - Meeting C++ 2024
Slides: slides.meeting...
Survey: survey.meeting...
The type-erasure design pattern allows to apply a fixed set of methods to a growing set of object types whereas the visitor design pattern applies a growing set of methods to a fixed set of objects.
Problems arise when you have a growing set of methods to apply to a growing set of object types.
This talk is about exploring that sweet spot and show a way to go beyond these 2 orthogonal concepts and get the best of both worlds
Very nice, practical!
Why am I not surprised to see Shapes and Visitors again 😂
33:21 Klaus Igleberger: free your functions: th-cam.com/video/WLDT1lDOsb4/w-d-xo.html