QTypeInfo: work around MSVC 2022 bug "isRelocatable: undeclared identifier"
Definitely a compiler bug because it passes for everything we threw at the compiler in the CI but fails for a user. At least the workaround is simple. Fixes: QTBUG-133032 Pick-to: 6.9 6.8 Change-Id: Ie84590c466cf1d6f01bbfffd3ca1d6c262d77200 Reviewed-by: Irfan Omair <irfan.omair@gmail.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
340c9d88ab
commit
0a5b37b706
@ -168,7 +168,7 @@ public: \
|
||||
isIntegral [[deprecated("Use std::is_integral instead")]] = std::is_integral< TYPE >::value, \
|
||||
isValueInitializationBitwiseZero = QtPrivate::qIsValueInitializationBitwiseZero<TYPE>, \
|
||||
}; \
|
||||
static_assert(!isRelocatable || \
|
||||
static_assert(!QTypeInfo<TYPE>::isRelocatable || \
|
||||
std::is_copy_constructible_v<TYPE > || \
|
||||
std::is_move_constructible_v<TYPE >, \
|
||||
#TYPE " is neither copy- nor move-constructible, so cannot be Q_RELOCATABLE_TYPE"); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user