diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-09-08 13:51:14 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-09-11 19:32:35 +0200 |
commit | 67519335211693b97db6e3bc4588a91b9eebfb39 (patch) | |
tree | 7679b3d10beef73e51a3b5b58c8943afd1309e05 /src/corelib/global/qglobal.h | |
parent | 05acc167c968722bf178c17710ff34b74d9cb124 (diff) |
Get rid of QEnableIf
Use std::enable_if instead.
Change-Id: I02a2f3066f9e4cab6db1909681a17330afdbbedb
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r-- | src/corelib/global/qglobal.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index fc85bec962..62d5c4f037 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -1233,12 +1233,6 @@ inline int qIntCast(float f) { return int(f); } "Compile your code with -fPIC (and not with -fPIE)." #endif -namespace QtPrivate { -//like std::enable_if -template <bool B, typename T = void> struct QEnableIf; -template <typename T> struct QEnableIf<true, T> { typedef T Type; }; -} - #define QT_VA_ARGS_CHOOSE(_1, _2, _3, _4, _5, _6, _7, _8, _9, N, ...) N #define QT_VA_ARGS_EXPAND(...) __VA_ARGS__ // Needed for MSVC #define QT_VA_ARGS_COUNT(...) QT_VA_ARGS_EXPAND(QT_VA_ARGS_CHOOSE(__VA_ARGS__, 9, 8, 7, 6, 5, 4, 3, 2, 1)) |