Make report_t a friend of format_t, so it can set the ANSI options.

This commit is contained in:
John Wiegley 2009-01-19 22:29:55 -04:00
parent 72c09cc0bf
commit ce49245667

View file

@ -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, "");