From ce492456670d8fba9a8e83e97818ff6cc3ed1fdc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 19 Jan 2009 22:29:55 -0400 Subject: Make report_t a friend of format_t, so it can set the ANSI options. --- src/format.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/format.h') 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, ""); -- cgit v1.2.3