From 02805e87e0d2cfa18f5c4207b596c3cdb59698dd Mon Sep 17 00:00:00 2001 From: Joana Niermann Date: Thu, 25 Jul 2024 00:19:32 +0200 Subject: [PATCH] MSVC fixes --- .../algebra/math/impl/vc_aos_transform3.hpp | 5 ++- .../include/algebra/storage/matrix44.hpp | 41 +++---------------- .../vc_soa/include/algebra/storage/vc_soa.hpp | 4 +- tests/vc_soa/vc_soa.cpp | 1 - 4 files changed, 11 insertions(+), 40 deletions(-) diff --git a/math/vc_aos/include/algebra/math/impl/vc_aos_transform3.hpp b/math/vc_aos/include/algebra/math/impl/vc_aos_transform3.hpp index 78c3ce05..275f4334 100644 --- a/math/vc_aos/include/algebra/math/impl/vc_aos_transform3.hpp +++ b/math/vc_aos/include/algebra/math/impl/vc_aos_transform3.hpp @@ -210,8 +210,9 @@ struct transform3 { /// /// @param m is the rotation matrix /// @param v is the vector to be rotated - ALGEBRA_HOST_DEVICE - inline constexpr auto rotate(const matrix44 &m, const vector3 &v) const { + template + ALGEBRA_HOST_DEVICE inline constexpr auto rotate( + const matrix44 &m, const vector3_type &v) const { return m.x * v[0] + m.y * v[1] + m.z * v[2]; } diff --git a/storage/common/include/algebra/storage/matrix44.hpp b/storage/common/include/algebra/storage/matrix44.hpp index 4cff0ba2..dc95eef7 100644 --- a/storage/common/include/algebra/storage/matrix44.hpp +++ b/storage/common/include/algebra/storage/matrix44.hpp @@ -97,42 +97,13 @@ struct matrix44 { /// Functor used to access elements of matrix44 struct element_getter { - /// Get const access to a matrix element - template