3

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.
Drise
  • 4,310
  • 5
  • 41
  • 66
Buddhika Chaturanga
  • 957
  • 2
  • 14
  • 29

0 Answers0