mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 04:40:34 +05:00
ctor
This commit is contained in:
parent
2b75d091e9
commit
2fdc293b9a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user