Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment