Closed parkertomatoes closed 6 years ago
variant-lite/0.1.0@nonstd-lite/stable
has a maximum of 7 types.
Under C++17, nonstd::variant
effectively is std::variant
which does not have this limitation (*).
Since 30 July 2018, nonstd::variant
has a configurable maximum number of types (default: 16).
There's no release yet that covers this.
(*) I intend to make selecting between nonstd::variant
and std::variant
configurable as with e.g. nonstd::any
.
That makes sense. Thank you for making these headers, and especially for providing conan packages. It makes it a lot easier to adopt the newer STD classes!
When using a variant with a large number of types under gcc, I get the following error:
CMakeLists.txt:
conanfile.txt:
variant_bug_demo.cpp:
EDIT: The same code, using \ and std::variant, compiles under gcc 8 with std=c++17