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