This commit is contained in:
Joachim Schoeberl 2024-12-31 13:38:04 +01:00
parent 2b75d091e9
commit 2fdc293b9a

View File

@ -220,7 +220,7 @@ namespace netgen
template <typename T, typename TIndex, int Base>
// constexpr auto operator+ (Index<T,TIndex,Base> ind, int i) { return TIndex(T(ind)+i); }
constexpr auto operator+ (Index<T,TIndex,Base> ind, int i) { return TIndex( Index<T,TIndex,Base>(ind) +=i ); }
constexpr auto operator+ (Index<T,TIndex,Base> ind, int i) { return TIndex{ Index<T,TIndex,Base>(ind) +=i }; }
template <typename T, typename TIndex, int Base>
constexpr TIndex operator+ (Index<T,TIndex,Base> pi, size_t i) { return TIndex(pi.i+i); }
template <typename T, typename TIndex, int Base>