Source code for presentation showing how C++17 std::variant<>, std::visit<> and overload of lambdas can make for powerful and easy to read code using polymorphic return values.

This code was used in a presentation for the SwedenCPP Stockholm and London C++ User Group on Oct 26 2017. pdf

Check the branch exception for a laugh ;-)

Public Domain.