C++14 works even if not added to CONFIG
-
In pro file I have:
CONFIG += c++11
But I can use C++14 features like:
int i = 0b0001'0000'0001;
How is that possible? I'm using Qt Createtor 4.12.1 and MSVC 2017 64 bit.
Even I if remove CONFIG line, it still works.
-
Hi
Maybe the /std:c++14 is included in the mkspec or in effect from other source.
Like at some point you had to add
CONFIG += c++11
for mingw but now its not needed.
-
@michalt38 said in C++14 works even if not added to CONFIG:
I was about to say what @jsulm has just said, and/or I guess MSVC 2017 just automatically supports this?What exact command line is being generated when MSVC compiler is called? According to https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2017 you might need to pass
/std:...
, and that doesn't even seem to accept/std:c++11
?