Commit 2ddafd43 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'fix-clang-warnings' into 'master'

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

closes #8 

See merge request !21
parents 89273cb1 706b0655
Pipeline #17 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.");
}
......
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