Make report_t a friend of format_t, so it can set the ANSI options.
This commit is contained in:
parent
72c09cc0bf
commit
ce49245667
1 changed files with 4 additions and 0 deletions
|
|
@ -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, "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue