diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2009-10-31 13:31:01 -0300 |
---|---|---|
committer | Lauro Neto <lauro.neto@openbossa.org> | 2009-11-10 11:21:13 -0300 |
commit | 0f880ec413d0ecebd9beb1053ff04e7877183cca (patch) | |
tree | 907bb066aa73615b9227238bb5bd888a618b7c9a /tests/libsample/collector.cpp | |
parent | 14b0bdd84be9a23419fea6b6e70370d4a1cb6501 (diff) |
Adding external operator to Collector (stream)
Diffstat (limited to 'tests/libsample/collector.cpp')
-rw-r--r-- | tests/libsample/collector.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/libsample/collector.cpp b/tests/libsample/collector.cpp index 0b81b2996..cd499d2dd 100644 --- a/tests/libsample/collector.cpp +++ b/tests/libsample/collector.cpp @@ -59,3 +59,8 @@ Collector::size() return (int) m_items.size(); } +Collector &operator<<(Collector &s, const IntWrapper &w) +{ + s << w.value; + return s; +} |