fix printing of 1 based arrays

This commit is contained in:
Christopher Lackner 2020-04-18 13:40:19 +02:00
parent af25893a77
commit b46ec8dc7b

View File

@ -600,8 +600,8 @@ namespace ngcore
FlatArray<T> View (FlatArray<T> fa) { return fa; } FlatArray<T> View (FlatArray<T> fa) { return fa; }
/// print array /// print array
template <class T> template <class T, class TIND>
inline ostream & operator<< (ostream & s, const FlatArray<T> & a) inline ostream & operator<< (ostream & s, const FlatArray<T, TIND> & a)
{ {
for (auto i : a.Range()) for (auto i : a.Range())
s << i << ": " << a[i] << "\n"; s << i << ": " << a[i] << "\n";