Commit a45c7f25 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'vectort-ctor-fix' into 'master'

fix generic VectorT ctor for non float-convertible scalar types



See merge request !22
parents 2ddafd43 11c99469
Pipeline #19 passed with stage
......@@ -104,7 +104,7 @@ public:
template<typename... T,
typename = typename std::enable_if<sizeof...(T) == DIM>::type,
typename = typename std::enable_if<are_convertible_to<float, T...>::value>::type>
typename = typename std::enable_if<are_convertible_to<Scalar, T...>::value>::type>
constexpr VectorT(T... vs) : Base { static_cast<Scalar>(vs)...}
{ }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment