3 ms·
> Neither g++ 7 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 clan
by shakna 9y ago
> Neither g++ 7
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 https://gcc.gnu.org/gcc-7/changes.html
[1] https://libcxx.llvm.org/cxx1z_status.html https://libcxx.llvm.org/cxx1z_status.html
[2] https://reviews.llvm.org/rL288547 https://reviews.llvm.org/rL288547
- gumby 9y agoHmm, have to check include paths again!
- shakna 9y agoSo I glanced over this, and found that std::variant is in libc++, as you would expect, but in some cases, when you get a nice modern compiler, you might not end up with it linked to a nice modern stdlib. So maybe some sort of mis-match got in your way. Anyways, here's hoping you get to use C++17 in its full glory!