Commit 11c99469 authored by Janis Born's avatar Janis Born

fix generic VectorT ctor for non float-convertible scalar types

parent 2ddafd43
Pipeline #18 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