How can I use std::variant in g++? Why isn't there std::variant in std::experimental (though std::optional is)? What version of g++ do I need? I prefer not to use boost and I'd like to use standard library only.
Edit: it seems like only g++ 7 supports std::variant. Then my question is: when will it be released and what problems may I encounter when using its experimental version?
This page says, that GCC 7 has
std::variant.