Unsolved Unable to use C++17 with MSVC2017 toolsets
-
Unable to use C++17 with MSVC2017 toolset.
I've already written "CONFIG += c++17".
However, macros like __HAS_CXX17 are not defined (we couldn't define it manually as it's kept), so we couldn't access C++17 features. -
-
@sierdzio said in Unable to use C++17 with MSVC2017 toolsets:
CONFIG += c++17
is not yet a qmake flag. I think it will be in Qt 5.12.Correct. For now you have to pass
CONFIG+=C++1z
You can pass MSVC flags (if it has any to enable C++17) via
QMAKE_CXXFLAGS
. DocsI'm not sure that is still needed with the correct config option.