From 706b0655937791b300de0e3bf4b2b9b52b0cc0d1 Mon Sep 17 00:00:00 2001 From: Hans-Christian Ebke Date: Thu, 12 Nov 2015 15:52:49 +0100 Subject: [PATCH] C++11: Fixed clang warning about missing braces. --- src/OpenMesh/Core/Geometry/VectorT.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Core/Geometry/VectorT.hh b/src/OpenMesh/Core/Geometry/VectorT.hh index 0eeb74ba..433120a0 100644 --- a/src/OpenMesh/Core/Geometry/VectorT.hh +++ b/src/OpenMesh/Core/Geometry/VectorT.hh @@ -125,7 +125,7 @@ template class VectorDataT { VectorDataT() {} template - 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 { VectorDataT() {} template - constexpr VectorDataT(T... vs) : values_ {vs...} { + constexpr VectorDataT(T... vs) : values_ {{vs...}} { static_assert(sizeof...(vs) == 4, "Incorrect number of vector components supplied."); }