2 ms·
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 qu
by gpderetta 11y ago
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 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.