Commit 706b0655 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

C++11: Fixed clang warning about missing braces.

parent 89273cb1
Pipeline #16 passed with stage
......@@ -125,7 +125,7 @@ template<typename Scalar, int N> class VectorDataT {
VectorDataT() {}
template<typename... T>
constexpr VectorDataT(T... vs) : values_ {vs...} {
constexpr VectorDataT(T... vs) : values_ {{vs...}} {
static_assert(sizeof...(vs) == N,
"Incorrect number of vector components supplied.");
}
......@@ -145,7 +145,7 @@ template<> class VectorDataT<float, 4> {
VectorDataT() {}
template<typename... T>
constexpr VectorDataT(T... vs) : values_ {vs...} {
constexpr VectorDataT(T... vs) : values_ {{vs...}} {
static_assert(sizeof...(vs) == 4,
"Incorrect number of vector components supplied.");
}
......
Supports Markdown
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