mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
calling ctor
This commit is contained in:
parent
626507f8fb
commit
7fac77d28e
@ -220,7 +220,7 @@ namespace netgen
|
|||||||
|
|
||||||
template <typename T, typename TIndex, int Base>
|
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(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>
|
template <typename T, typename TIndex, int Base>
|
||||||
constexpr TIndex operator+ (Index<T,TIndex,Base> pi, size_t i) { return TIndex(pi.i+i); }
|
constexpr TIndex operator+ (Index<T,TIndex,Base> pi, size_t i) { return TIndex(pi.i+i); }
|
||||||
template <typename T, typename TIndex, int Base>
|
template <typename T, typename TIndex, int Base>
|
||||||
|
Loading…
Reference in New Issue
Block a user