diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2011-05-19 12:43:53 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-05-19 13:09:31 (GMT) |
commit | 837f18f043b18410c1d93b9f1156acf729dad510 (patch) | |
tree | 917ed29d746d516b66e20193a52a0d72c8b5afde /src/corelib/global | |
parent | c319214f919e3345f673391253f92c6bc0e2a285 (diff) | |
download | Qt-837f18f043b18410c1d93b9f1156acf729dad510.zip Qt-837f18f043b18410c1d93b9f1156acf729dad510.tar.gz Qt-837f18f043b18410c1d93b9f1156acf729dad510.tar.bz2 |
Add QtPrivate::QEnableIf
Needed for QtConcurrent.
Like the new std::enable_if (in c++0x)
Reviewed-by: Joao
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 3e1f011..b3462de 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -2770,6 +2770,12 @@ QT_LICENSED_MODULE(DBus) # define QT_NO_RAWFONT #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; }; +} + QT_END_NAMESPACE QT_END_HEADER |