How to use std::variant in g++ ? Why is there no std::variant in std::experimental (although std::optional is)? What version of g++ do I need? I prefer not to use boost , and I would like to use only the standard library.
Edit: only g++ 7 seems to support std::variant . Then my question is: when will it be released and what problems can arise when using its experimental version?
source share