From 29399159e9cb708cf9524dec632ac9e0f6414985 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 4 Sep 2019 11:59:49 -0400 Subject: [PATCH] CMatrix4f: Make copy assignment constexpr Matches the constexpr copy constructor. --- include/zeus/CMatrix4f.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zeus/CMatrix4f.hpp b/include/zeus/CMatrix4f.hpp index 20ce5d7..cc53ab3 100644 --- a/include/zeus/CMatrix4f.hpp +++ b/include/zeus/CMatrix4f.hpp @@ -49,7 +49,7 @@ public: m[3].mSimd = CVector4f(0.f, 0.f, 0.f, 1.0f).mSimd; } - CMatrix4f& operator=(const CMatrix4f& other) = default; + constexpr CMatrix4f& operator=(const CMatrix4f& other) = default; CVector4f operator*(const CVector4f& other) const { return m[0].mSimd * other.mSimd.shuffle<0, 0, 0, 0>() + m[1].mSimd * other.mSimd.shuffle<1, 1, 1, 1>() +