Visual Studio 2017 can't find std::variant
You can also go
Project
> Properties
> C/C++
> Language
and set C++ Language Standard
to ISO C++17 Standard (/std:c++17)
make sure to be on All Configurations
and All Platforms
Project → Properties → C/C++ → Command Line /std:c++latest
Then click Apply and OK.