diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 289d064a..2662a5a2 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{ind}+=i; } template constexpr TIndex operator+ (Index pi, size_t i) { return TIndex(pi.i+i); } template