1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Merge pull request #310 from kostrzewa/accelerator_vector_stream_op_no_backspace

do not use backspace in AcceleratorVector (Coordinate) output stream operator
This commit is contained in:
Peter Boyle 2020-09-03 20:24:59 -04:00 committed by GitHub
commit f98a4e880e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,10 +99,10 @@ inline std::ostream & operator<<(std::ostream &os, const AcceleratorVector<T,_nd
{
os << "[";
for(int s=0;s<v.size();s++) {
os << v[s] << " ";
}
if (v.size() > 0) {
os << "\b";
os << v[s];
if( s < (v.size()-1) ){
os << " ";
}
}
os << "]";
return os;