A type-safe
union
variant
reached a design consensus at the fall ISO C++ committee meeting in Kona, HI, USA.
While the design is still not final, this library is an experimental reference implementation of P0088R0.
Since this project uses git submodule
, specifying the --recursive
flag to git clone
is recommended.
git clone --recursive https://github.com/mpark/variant.git
This library requires a standard conformant C++14 compiler.
Tested configurations:
- Ubuntu 14.04 Trusty:
GCC 5
,Clang 3.5+
- Mac OS X Yosemite:
Apple Clang
,Clang 3.5+