qt5base-lts/src
Olivier Goffart 5322200076 Silence clang warnings in C++03 mode
C++03 forbid the use of local or unnamed type as template parameter.
But in C++11 that is allowed, and clang accept them even in C++03
mode, but with a warning.

The Warning happen for example with this code:

  enum { Foo = 3 };
  int x = 3 << Foo;

Then the compiler issues warnings:

metatype.h:1379:31: warning: template argument uses local type [-Wlocal-type-template-args]
        enum { Value = sizeof(qt_getEnumMetaObject(declval())) == sizeof(QMetaObject*) };
                              ^~~~~~~~~~~~~~~~~~~~
qdebug.h:269:42: note: in instantiation of template class 'QtPrivate::IsQEnumHelper<(anonymous enum)>' requested here
typename QtPrivate::QEnableIf<QtPrivate::IsQEnumHelper<T>::Value, QDebug>::Type operator<<(QDebug dbg, T value)

Normaly the compiler should not even try to instantiate the operator<<
with such types in C++03 mode.

Change-Id: I48c7d5d1836fd87986835fe15c7e0b1beb73c728
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-04-01 14:20:50 +00:00
..
3rdparty Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-31 10:03:31 +02:00
android Android: update android gradle plugin version 2015-03-23 07:38:48 +00:00
angle make the installed meta files play nicely with sysroots 2015-02-05 14:26:44 +00:00
concurrent Doc: fixed links on index page QtConcurrent 2015-03-05 09:40:16 +00:00
corelib Silence clang warnings in C++03 mode 2015-04-01 14:20:50 +00:00
dbus Use QStringLiteral where applicable in QtDBus 2015-03-31 06:50:42 +00:00
gui Fix debug stream operators. 2015-04-01 13:49:32 +00:00
network Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-31 10:03:31 +02:00
opengl Use QDebugStateSaver to restore space setting in stream operators. 2015-03-30 12:59:58 +00:00
openglextensions Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
platformheaders Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
platformsupport Fix a few clang warning 2015-04-01 11:29:09 +00:00
plugins Merge "Merge remote-tracking branch 'origin/5.4' into 5.5" into refs/staging/5.5 2015-04-01 11:27:03 +00:00
printsupport Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-31 10:03:31 +02:00
sql MySQL: Keep the precision of the field when formatting the value 2015-03-20 13:51:29 +00:00
testlib testlib: Detect distribution name/release for blacklisting tests 2015-03-30 08:41:49 +00:00
tools qdoc: No internal qmlabstract types in the "inherited by" list 2015-03-27 13:55:56 +00:00
widgets Fix debug stream operators. 2015-04-01 13:49:32 +00:00
winmain Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
xml QtXml: Fix const correctness in old style casts 2015-03-11 01:50:23 +00:00
src.pro Build bundled freetype as qt_helper_lib 2015-03-27 21:54:22 +00:00