MSVC 2008 is confused by TypeInStruct being a template, resulting in
\tst_qatomicinteger.cpp(189) : error C2027: use of undefined type 'QStaticAssertFailure<Test>'
with
[
Test=false
]
for int (and thus for all unsupported types). This appears to be a real
Heisenbug-nature compiler bug as it can also be fixed by adding
qDebug() << Q_ALIGNOF(TypeInStruct<T>)
before the static assert.
Task-number: QTBUG-37195
Change-Id: Ib2b60f3c1ffeb0b8bdeb1fb0c659655ce4ab10d8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
||
|---|---|---|
| .. | ||
| char | ||
| char16_t | ||
| char32_t | ||
| int | ||
| long | ||
| qlonglong | ||
| qptrdiff | ||
| quintptr | ||
| qulonglong | ||
| schar | ||
| short | ||
| uchar | ||
| uint | ||
| ulong | ||
| ushort | ||
| wchar_t | ||
| qatomicinteger.pri | ||
| qatomicinteger.pro | ||
| tst_qatomicinteger.cpp | ||