3

编程环境:

  • 视觉工作室 2017(15.6.2)
  • 英特尔 Parallel Studio Xe 2018 更新 1
  • 视窗 10(6299.309)

我的问题是我不能包含最新的标头,例如std::variant最新std::optional的 Intel C++ 18 update 1 版本。

假设我包含std::variant一个实例,即使添加-std=c++17/Qstd=c++17编译器选项,编译器也会出现此错误:

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.
4

0 回答 0