From 1fdd532910591aaa3410fcc83dee89dc94ff78a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 24 Nov 2016 12:06:46 +0100 Subject: [PATCH] Math: return proper subclass from Matrix::transposed(). --- src/Magnum/Math/Matrix.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Math/Matrix.h b/src/Magnum/Math/Matrix.h index 8d204b59f..7ed4b997e 100644 --- a/src/Magnum/Math/Matrix.h +++ b/src/Magnum/Math/Matrix.h @@ -215,6 +215,9 @@ template class Matrix: public RectangularMatrix operator*(const Vector& other) const { return RectangularMatrix::operator*(other); } + Matrix transposed() const { + return RectangularMatrix::transposed(); + } MAGNUM_RECTANGULARMATRIX_SUBCLASS_IMPLEMENTATION(size, size, Matrix) #endif };