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; }
/// print array
template <class T>
inline ostream & operator<< (ostream & s, const FlatArray<T> & a)
template <class T, class TIND>
inline ostream & operator<< (ostream & s, const FlatArray<T, TIND> & a)
{
for (auto i : a.Range())
s << i << ": " << a[i] << "\n";