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>
|
||
|---|---|---|
| .. | ||
| qatomicint | ||
| qatomicinteger | ||
| qatomicpointer | ||
| qfuture | ||
| qfuturesynchronizer | ||
| qfuturewatcher | ||
| qmutex | ||
| qmutexlocker | ||
| qreadlocker | ||
| qreadwritelock | ||
| qresultstore | ||
| qsemaphore | ||
| qthread | ||
| qthreadonce | ||
| qthreadpool | ||
| qthreadstorage | ||
| qwaitcondition | ||
| qwritelocker | ||
| thread.pro | ||