diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 7826be20..f2413a61 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -187,7 +187,7 @@ namespace netgen constexpr TIndex operator-= (int add) { i -= add; return TIndex{*this}; } constexpr TIndex operator-= (size_t add) { i -= add; return TIndex{*this}; } - auto operator- (Index i2) const { return i-i2.i; } + constexpr auto operator- (Index i2) const { return i-i2.i; } // bool operator== (Index i2) const { return i==i2.i; } // bool operator!= (Index i2) const { return i!=i2.i; }