News for hackers. Stuff that matters.
Re:Why C++ sucks (2016 edition) by gpderetta on Monday February 22, 2016 @05:59AM (#11149962)
If you are already using boost, as many projects are, it is no extra dependency. Otherwise there are many standalone implementations.

Egg.Variant is an high quality one: https://github.com/eggs-cpp/variant .

We are likely going to get a std variant type in the next standard, either as a library component or as a language feature.

There are no comments on this comment yet.