summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-09-29 07:19:54 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-09-29 07:19:54 +0000
commit3667f06594a99dd6f0080747732e7eff639343b1 (patch)
tree246eb9daa91831e19ff43844325f7e38797cde7b /ledger.h
parentfaaed980ea63fcac773859680a68a82e96c7fdc8 (diff)
downloadfork-ledger-3667f06594a99dd6f0080747732e7eff639343b1.tar.gz
fork-ledger-3667f06594a99dd6f0080747732e7eff639343b1.tar.bz2
fork-ledger-3667f06594a99dd6f0080747732e7eff639343b1.zip
*** empty log message ***
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ledger.h b/ledger.h
index 0e261ceb..99287cc6 100644
--- a/ledger.h
+++ b/ledger.h
@@ -1,5 +1,5 @@
#ifndef _LEDGER_H
-#define _LEDGER_H "$Revision: 1.1 $"
+#define _LEDGER_H "$Revision: 1.2 $"
//////////////////////////////////////////////////////////////////////
//
@@ -210,6 +210,13 @@ class totals
}
};
+template<class Traits>
+std::basic_ostream<char, Traits> &
+operator<<(std::basic_ostream<char, Traits>& out, const totals& t) {
+ t.print(out);
+ return out;
+}
+
struct account
{
std::string name;