'CONFIG += c++17' does not take an effect in .pro file.
Solved
General and Desktop
-
-
hi @Dmitriano
take a look at this bug report
https://bugreports.qt.io/browse/QTBUG-67527seems like c++1z is the way to go.
-
@Dmitriano did you make a complete rebuild of your project, clean -> qmake -> make?
Changing the pro file will require a complete recreation
-
@Dmitriano
well I#m out of ideas,according to this reference
https://doc.qt.io/qt-5/qmake-variable-reference.htmlit should work, if your compiler supports it.
I would assume, that MSVC2017 does indeed support c++17 😟 -
@Dmitriano please show your compiler output. Both
c++1z
andc++17
should work in Qt 5.12 upwards. For version < 5.12, you need to specifyc++17
.