|
|
|
|
|
by gumby
3233 days ago
|
|
> Most of the time I'd recommend the new type-safe union std::variant Neither g++ 7 nor Clang/LLVM 4.0.1 support std::variant yet :-(. We started a new (blank buffer) codebase earlier this year and decided to use C++17 as the implementation language, which has exposed us to the gaps...which are surprisingly few! But sadly this is one of them. |
|
Eh? I've been using it a hell of a lot!
std::variant is listed on GCC 7's page [0], and I know that is there in at least 7.1
I don't use clang much, but they list it as supported [1], and I believe the patch [2] landed in 5.0
[0] https://gcc.gnu.org/gcc-7/changes.html
[1] https://libcxx.llvm.org/cxx1z_status.html
[2] https://reviews.llvm.org/rL288547