diff options
Diffstat (limited to 'ledger.h')
-rw-r--r-- | ledger.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |