From 55689e301c74b2ef20b9283ebb29417ef1657fe2 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Fri, 1 Oct 2021 09:29:21 +0200 Subject: Purge Q_NO_TEMPLATE_FRIENDS and platforms lacking support for them Given that we rely on C++17, it should be safe to mandate that level of language support. Change-Id: If07ccb36bea2a5113a8f5aacf635be7d2590baf7 Reviewed-by: Lars Knoll Reviewed-by: Qt CI Bot Reviewed-by: Thiago Macieira --- src/gui/math3d/qgenericmatrix.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/gui/math3d') diff --git a/src/gui/math3d/qgenericmatrix.h b/src/gui/math3d/qgenericmatrix.h index 9d8869ff3a..47a77d1e52 100644 --- a/src/gui/math3d/qgenericmatrix.h +++ b/src/gui/math3d/qgenericmatrix.h @@ -79,7 +79,6 @@ public: const T *data() const { return *m; } const T *constData() const { return *m; } -#if !defined(Q_NO_TEMPLATE_FRIENDS) template friend QGenericMatrix operator+(const QGenericMatrix& m1, const QGenericMatrix& m2); template @@ -96,13 +95,10 @@ public: friend QGenericMatrix operator/(const QGenericMatrix& matrix, TT divisor); private: -#endif T m[N][M]; // Column-major order to match OpenGL. -#if !defined(Q_NO_TEMPLATE_FRIENDS) template friend class QGenericMatrix; -#endif }; template class QTypeInfo > -- cgit v1.2.3