From 990fb0657cc8ef9a14b957c02199b79c159aeb23 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 31 Dec 2024 13:09:33 +0100 Subject: [PATCH] calling ctor --- libsrc/meshing/meshtype.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 2662a5a2..6be61848 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -220,7 +220,7 @@ namespace netgen template // constexpr auto operator+ (Index ind, int i) { return TIndex(T(ind)+i); } - constexpr auto operator+ (Index ind, int i) { return TIndex{ind}+=i; } + constexpr auto operator+ (Index ind, int i) { return TIndex( Index(ind) +=i ); } template constexpr TIndex operator+ (Index pi, size_t i) { return TIndex(pi.i+i); } template