Summary
Jason Turner revisits his approach to creating visitors by inheriting from lambdas, demonstrating significant improvements using C++17 features. He shows how to simplify the implementation by leveraging aggregate initialization of base classes to eliminate explicit constructors, removing unnecessary std::decay, and making the visitor constexpr. This refined implementation results in cleaner, more maintainable code while still allowing the compiler to optimize effectively.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[meta.trans.other]40% match