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

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 { ...@@ -125,7 +125,7 @@ template<typename Scalar, int N> class VectorDataT {
VectorDataT() {} VectorDataT() {}
template<typename... T> template<typename... T>
constexpr VectorDataT(T... vs) : values_ {vs...} { constexpr VectorDataT(T... vs) : values_ {{vs...}} {
static_assert(sizeof...(vs) == N, static_assert(sizeof...(vs) == N,
"Incorrect number of vector components supplied."); "Incorrect number of vector components supplied.");
} }
...@@ -145,7 +145,7 @@ template<> class VectorDataT<float, 4> { ...@@ -145,7 +145,7 @@ template<> class VectorDataT<float, 4> {
VectorDataT() {} VectorDataT() {}
template<typename... T> template<typename... T>
constexpr VectorDataT(T... vs) : values_ {vs...} { constexpr VectorDataT(T... vs) : values_ {{vs...}} {
static_assert(sizeof...(vs) == 4, static_assert(sizeof...(vs) == 4,
"Incorrect number of vector components supplied."); "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