diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-01-29 18:19:18 -0800 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-02-04 11:37:46 -0800 |
| commit | 0a5b37b706ee72c7d9042efcde244aa93a5ce9a5 (patch) | |
| tree | 15a48ae2d755c54ebd76dde3dfd9900287dd61d0 /src | |
| parent | 340c9d88ab353e201f117d64609fa5f7d2fa2b21 (diff) | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/corelib/global/qtypeinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qtypeinfo.h b/src/corelib/global/qtypeinfo.h index e9dfbc34a4f..bcf365bdf61 100644 --- a/src/corelib/global/qtypeinfo.h +++ b/src/corelib/global/qtypeinfo.h @@ -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"); \ |
