summaryrefslogtreecommitdiffstats
path: root/QA
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-07-01 07:30:24 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-07-03 22:53:56 (GMT)
commitf2bbeeae4f277ab02edee8fb39cbd397931595e2 (patch)
tree61208211827f0ca6da152e72216b56ebd324a6e3 /QA
parente4c1ffda13c4f7da7e2e8dd955b859d030134cbc (diff)
downloadswift-contrib-f2bbeeae4f277ab02edee8fb39cbd397931595e2.zip
swift-contrib-f2bbeeae4f277ab02edee8fb39cbd397931595e2.tar.bz2
Implement TableRoster with roster diff.
Diffstat (limited to 'QA')
-rw-r--r--QA/Checker/IO.cpp15
-rw-r--r--QA/Checker/IO.h2
2 files changed, 17 insertions, 0 deletions
diff --git a/QA/Checker/IO.cpp b/QA/Checker/IO.cpp
index 659e16e..d9eadd6 100644
--- a/QA/Checker/IO.cpp
+++ b/QA/Checker/IO.cpp
@@ -40,3 +40,18 @@ std::ostream& operator<<(std::ostream& os, const Swift::SafeByteArray& s) {
return os;
}
+std::ostream& operator<<(std::ostream& os, const std::vector<int>& s) {
+ for (std::vector<int>::const_iterator i = s.begin(); i != s.end(); ++i) {
+ os << *i << " ";
+ }
+ os << std::endl;
+ return os;
+}
+
+std::ostream& operator<<(std::ostream& os, const std::vector<size_t>& s) {
+ for (std::vector<size_t>::const_iterator i = s.begin(); i != s.end(); ++i) {
+ os << *i << " ";
+ }
+ os << std::endl;
+ return os;
+}
diff --git a/QA/Checker/IO.h b/QA/Checker/IO.h
index a369b56..2545d24 100644
--- a/QA/Checker/IO.h
+++ b/QA/Checker/IO.h
@@ -11,3 +11,5 @@
std::ostream& operator<<(std::ostream& os, const Swift::ByteArray& s);
std::ostream& operator<<(std::ostream& os, const Swift::SafeByteArray& s);
+std::ostream& operator<<(std::ostream& os, const std::vector<int>& s);
+std::ostream& operator<<(std::ostream& os, const std::vector<size_t>& s);