Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

using std::any, compiler options /std:c++17, /Qstd=c++17 not compatible

$
0
0

Hello,

I have tried to use std::any class, but I cannot enable C++17 support for Intel Compiler.

If I use it with VC++ I have to enable Language->C++ Language Standard->ISO C++17 Standard (/std:c++17) then it works fine.

If I use Intel with this option it says: class any is only available with C++17:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\any(14): error : #error directive: class any is only available with C++17.

if !_HAS_CXX17
 #error class any is only available with C++17.
#endif /* _HAS_CXX17 */

If I enable C++17 on C++->Language[Intel C++]-> C/C++ Language support->C++17 Support (/Qstd=c++17)

then I become error: icl: : error : '/Qstd:<arg>' conflicts with '/std:<arg>'

Command line:

/permissive- /Yu"stdafx.h" /GS /W3 /Zc:wchar_t /ZI /Od /Fd"Debug\vc141.pdb" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Zc:forScope /RTC1 /Gd /MDd /std:c++17 /FC /Fa"Debug\" /EHsc /nologo /Fo"Debug\" /Qstd=c++17 /Qprof-dir "Debug\" /Fp"Debug\anyintel.pch"

 


Viewing all articles
Browse latest Browse all 1175

Trending Articles