How to enable standard C++ 14/17 in Intel C++ compiler?

629 Views Asked by At

Programming Environment:

  • Visual Studio 2017(15.6.2)
  • Intel Parallel Studio Xe 2018 Update 1
  • Windows 10(6299.309)

My problem is that I cannot include latest headers like std::variant and std::optional with latest Intel C++ 18 update 1 version.

Say if I include std::variant for an instance, the compiler yelling with this error even if add -std=c++17 or /Qstd=c++17 compiler options:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.13.26128\include\variant(16): error : #error directive: class template variant is only available with C++17.
1>   #error class template variant is only available with C++17.
0

There are 0 best solutions below