From 2fdc293b9aedb26cde8234094e9c8062a56cede5 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 31 Dec 2024 13:38:04 +0100 Subject: [PATCH] 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 5c2c740a..da5aa339 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( Index(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