calling ctor

This commit is contained in:
Joachim Schoeberl 2024-12-31 13:04:57 +01:00
parent 626507f8fb
commit 7fac77d28e

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(ind)+=i; }
constexpr auto operator+ (Index<T,TIndex,Base> ind, int i) { return TIndex{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>