From ddbe6117b3a727757c985d3dfe43acd901ece84e Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 6 Dec 2016 13:13:51 +0100 Subject: [PATCH] Bump C++ version to 14 Our compilers support some features which are part of the C++ 14 feature set. Some off them are silently compiled with the C++ 11 setting. For example: [foo=bar] {} is actually working with GCC but is part of C++ 14. Change-Id: Icf2c3806e26c675f8251768c6ad54ba4da186d11 Reviewed-by: Eike Ziller --- .qmake.conf | 2 +- qbs/imports/QtcProduct.qbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.qmake.conf b/.qmake.conf index a695f3792de..ceb08b1dcb2 100644 --- a/.qmake.conf +++ b/.qmake.conf @@ -1 +1 @@ -CONFIG += c++11 +CONFIG += c++14 diff --git a/qbs/imports/QtcProduct.qbs b/qbs/imports/QtcProduct.qbs index bb6828e97ae..690880d5729 100644 --- a/qbs/imports/QtcProduct.qbs +++ b/qbs/imports/QtcProduct.qbs @@ -19,7 +19,7 @@ Product { Depends { name: "qtc" } Depends { name: product.name + " dev headers"; required: false } - cpp.cxxLanguageVersion: "c++11" + cpp.cxxLanguageVersion: "c++14" cpp.defines: qtc.generalDefines cpp.minimumOsxVersion: "10.7" cpp.minimumWindowsVersion: qbs.architecture === "x86" ? "5.1" : "5.2"