diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-11-02 11:33:34 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-11-10 18:47:19 +0000 |
commit | c765d5945b75a54d61297b8923497a034020337a (patch) | |
tree | f898994c5783f71d9933db15b7e3387a303a34bf /src/3rdparty | |
parent | 06f4b3761acfa721e25da48fe4133fc5f75244bf (diff) |
Add a configure test for std::make_unique
Seems like this is the only reliable way to determine whether we
have std::make_unique() or need to provide our own version.
Change-Id: I5b162e0a2d2448d7bc519958c6e85a075812135a
Fixes: QTBUG-71448
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/masm/stubs/wtf/Optional.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3rdparty/masm/stubs/wtf/Optional.h b/src/3rdparty/masm/stubs/wtf/Optional.h index 235730a87d..fdb7de51ce 100644 --- a/src/3rdparty/masm/stubs/wtf/Optional.h +++ b/src/3rdparty/masm/stubs/wtf/Optional.h @@ -40,6 +40,7 @@ #pragma once #include <QtCore/qglobal.h> +#include <QtQml/private/qtqmlglobal_p.h> #include <memory> #if __cplusplus > 201402L && QT_HAS_INCLUDE(<optional>) @@ -83,7 +84,7 @@ private: #endif -#if __cplusplus < 201402L && !defined(__cpp_lib_make_unique) && !defined(Q_CC_MSVC) && !defined(Q_CC_GHS) +#if __cplusplus < 201402L && !QT_CONFIG(cxx14_make_unique) namespace std { template<typename T, class ...Args> |