QGenericMatrix<N,M,T>: mark as relocatable, depending on T
Inherit the type-classification from the underlying type, but, for BC reasons, force isStatic = true, so QList does not change its memory layout in an incompatible way. Change-Id: I11003cdd24968f903fbd86aa2f5c17287e057c1f Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
4d0672ed42
commit
fc78bc2c06
@ -103,6 +103,17 @@ private:
|
||||
friend class QGenericMatrix;
|
||||
#endif
|
||||
};
|
||||
template <int N, int M, typename T>
|
||||
class QTypeInfo<QGenericMatrix<N, M, T> >
|
||||
: public QTypeInfoMerger<QGenericMatrix<N, M, T>, T>
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
public:
|
||||
enum {
|
||||
isStatic = true,
|
||||
}; // at least Q_RELOCATABLE_TYPE, for BC during Qt 5
|
||||
#endif
|
||||
};
|
||||
|
||||
template <int N, int M, typename T>
|
||||
Q_INLINE_TEMPLATE QGenericMatrix<N, M, T>::QGenericMatrix()
|
||||
|
Loading…
Reference in New Issue
Block a user