From Jason Turner
Watch on YouTube

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.

Resources

Tags