From 46e79aba1147cdd7f29cc4cd51b7a305b7dff166 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sat, 22 May 2021 11:57:21 +0100 Subject: [PATCH] simgear/math/simd4x4.hxx: avoid -Wdeprecated-copy warnings. Added simd4x4_t::operator=(). --- simgear/math/simd4x4.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simgear/math/simd4x4.hxx b/simgear/math/simd4x4.hxx index 00c5dd90..f3d056b6 100644 --- a/simgear/math/simd4x4.hxx +++ b/simgear/math/simd4x4.hxx @@ -181,6 +181,11 @@ public: } ~simd4x4_t(void) {} + simd4x4_t& operator=(const simd4x4_t& rhs) { + std::memcpy(array, rhs.array, sizeof(array)); + return *this; + } + inline T (&m4x4(void))[4][4] { return _m4x4; }