Skip to content

Commit

Permalink
Fix template declaration for GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Mar 29, 2021
1 parent 8380d68 commit 1db10d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/math/Vector3.h
Expand Up @@ -453,7 +453,7 @@ class BasicVector3
};

/// Multiply vector components with a scalar and return the result
template <typename T, typename S, typename SMustBeScalar = std::enable_if<std::is_scalar<S>::value>::type>
template <typename T, typename S, typename SMustBeScalar = typename std::enable_if<std::is_scalar<S>::value>::type>
BasicVector3<T> operator*(const BasicVector3<T>& v, S s)
{
T factor = static_cast<T>(s);
Expand Down

0 comments on commit 1db10d3

Please sign in to comment.