diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-04-13 20:13:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-04-13 20:13:00 +0000 |
commit | 8e8733b83b68567860d8e870f8694acc1a2bc5f3 (patch) | |
tree | f28e3d8aab1aa35e07e731a91a013411f4a72c4e | |
parent | dcdf89080ae271fdc7228ee93420f5d1f416adad (diff) |
CarpetLib: Do not number the elements when outputting a vector
darcs-hash:20060413201319-dae7b-04e2b3038d83e746ac52fd01b3cf4ba51ddb6c01.gz
-rw-r--r-- | Carpet/CarpetLib/src/defs.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/defs.cc b/Carpet/CarpetLib/src/defs.cc index beeb7edb4..00030a77c 100644 --- a/Carpet/CarpetLib/src/defs.cc +++ b/Carpet/CarpetLib/src/defs.cc @@ -137,10 +137,13 @@ ostream& output (ostream& os, const stack<T>& s) { template<class T> ostream& output (ostream& os, const vector<T>& v) { os << "["; - int cnt=0; + // Do not number the elements, as this would lead to a format that + // cannot be read back in. +// int cnt=0; for (typename vector<T>::const_iterator ti=v.begin(); ti!=v.end(); ++ti) { if (ti!=v.begin()) os << ","; - os << cnt++ << ":" << *ti; +// os << cnt++ << ":"; + os << *ti; } os << "]"; return os; |