]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning about extra {}
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 15 Feb 2022 19:03:05 +0000 (19:03 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 15 Feb 2022 19:03:05 +0000 (19:03 +0000)
source/arborx/access_traits.cc

index e94b05842340c3f64476a38b74d0c0f63ccc7bf8..c8b3d3473d3fc94e886e13b1734fb292d768440c 100644 (file)
@@ -171,9 +171,9 @@ namespace ArborX
   {
     // ArborX assumes that the point coordinates use float and that the point
     // is 3D
-    return {{static_cast<float>(v[i][0]),
-             static_cast<float>(v[i][1]),
-             dim == 2 ? 0 : static_cast<float>(v[i][2])}};
+    return {static_cast<float>(v[i][0]),
+            static_cast<float>(v[i][1]),
+            dim == 2 ? 0 : static_cast<float>(v[i][2])};
   }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.