Skip to content

Commit

Permalink
MSVC fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niermann999 committed Jul 24, 2024
1 parent 676202f commit fb1b8df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion math/vc_aos/include/algebra/math/impl/vc_aos_transform3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ struct transform3 {
///
/// @param m is the rotation matrix
/// @param v is the vector to be rotated
template<typename vector3_type>
ALGEBRA_HOST_DEVICE
inline constexpr auto rotate(const matrix44 &m, const vector3 &v) const {
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];
}
Expand Down
4 changes: 2 additions & 2 deletions storage/vc_soa/include/algebra/storage/vc_soa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ template <typename T>
using value_type = Vc::Vector<T>;
/// Vector type used in the Vc SoA storage model
template <typename T, std::size_t N>
using vector_type = storage::vector<N, value_type<T>, std::array>;
using vector_type = storage::vector<N, value_type<T>, storage_type>;
/// Matrix type used in the Vc SoA storage model
template <typename T, size_type ROWS, size_type COLS>
using matrix_type = storage::vector<ROWS * COLS, value_type<T>, std::array>;
using matrix_type = storage::vector<ROWS * COLS, value_type<T>, storage_type>;

/// 2-element "vector" type, using @c Vc::Vector in every element
template <typename T>
Expand Down

0 comments on commit fb1b8df

Please sign in to comment.