From f08799783759060fab31c454e9e004a88209bf3a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 13 Jul 2023 07:48:01 -0400 Subject: [PATCH] Address review suggestion Co-authored-by: Wolfgang Bangerth --- source/arborx/access_traits.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/arborx/access_traits.cc b/source/arborx/access_traits.cc index ac2bbf36f7..a9ea5b720b 100644 --- a/source/arborx/access_traits.cc +++ b/source/arborx/access_traits.cc @@ -29,11 +29,11 @@ namespace ArborXWrappers { static_assert(dim >= 1 && dim <= 3); if (dim == 1) - return {float(p[0]), 0.f, 0.f}; + return Point<3, float>(p[0], 0.f, 0.f); else if (dim == 2) - return {float(p[0]), float(p[1]), 0.f}; + return Point<3, float>(p[0], p[1], 0.f); else - return {float(p[0]), float(p[1]), float(p[2])}; + return Point<3, float>(p[0], p[1], p[2]); } } // namespace -- 2.39.5