I have this line in my .pro file.
CONFIG += c++1z
so it should pass the c++17 switch to compiler, However, the project is compiled with c++14. I run qmake every time I compile. Qt is 5.9. and qtcreator is 6.0.0 windows 10, compiler is visual studio 2020 community edition.
the error message is this:
\main.cpp:18: error: C2429: language feature 'structured bindings' requires compiler flag '/std:c++17'
CONFIG += c++1z
so it should pass the c++17 switch to compiler, However, the project is compiled with c++14. I run qmake every time I compile. Qt is 5.9. and qtcreator is 6.0.0 windows 10, compiler is visual studio 2020 community edition.
the error message is this:
\main.cpp:18: error: C2429: language feature 'structured bindings' requires compiler flag '/std:c++17'