SciTech.blog
SciTech.blog
The recently released C++17 provides a new type, std::variant, for implementing sum types. This post focusses on its basic use.