6 ms·C++ has std::variant these days, no need for Boost… however, neither version has particularly good ergonomics.by comex 4y agoC++ has std::variant these days, no need for Boost… however, neither version has particularly good ergonomics.