diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-19 22:29:55 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-19 22:29:55 -0400 |
commit | ce492456670d8fba9a8e83e97818ff6cc3ed1fdc (patch) | |
tree | 885fa464bdf9575779366758282202804cdb5a2f /src/format.h | |
parent | 72c09cc0bf6247a36c9a2dae6109ca4583ff2f6e (diff) | |
download | fork-ledger-ce492456670d8fba9a8e83e97818ff6cc3ed1fdc.tar.gz fork-ledger-ce492456670d8fba9a8e83e97818ff6cc3ed1fdc.tar.bz2 fork-ledger-ce492456670d8fba9a8e83e97818ff6cc3ed1fdc.zip |
Make report_t a friend of format_t, so it can set the ANSI options.
Diffstat (limited to 'src/format.h')
-rw-r--r-- | src/format.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/format.h b/src/format.h index ff33e2d7..cb4ef2dd 100644 --- a/src/format.h +++ b/src/format.h @@ -39,6 +39,8 @@ namespace ledger { DECLARE_EXCEPTION(format_error, std::runtime_error); +class report_t; + class format_t : public noncopyable { struct element_t : public supports_flags<>, public noncopyable @@ -105,6 +107,8 @@ private: static element_t * parse_elements(const string& fmt); + friend class report_t; + public: format_t() { TRACE_CTOR(format_t, ""); |