feat(library/io_state): add default constructor to io_state
This commit is contained in:
parent
80fd14b39e
commit
c7c35becb2
2 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,8 @@ io_state const & get_dummy_ios() {
|
|||
return g_dummy_ios;
|
||||
}
|
||||
|
||||
io_state::io_state():io_state(mk_print_formatter_factory()) {}
|
||||
|
||||
io_state::io_state(formatter_factory const & fmtf):
|
||||
m_formatter_factory(fmtf),
|
||||
m_regular_channel(std::make_shared<stdout_channel>()),
|
||||
|
|
|
@ -23,6 +23,7 @@ class io_state {
|
|||
std::shared_ptr<output_channel> m_regular_channel;
|
||||
std::shared_ptr<output_channel> m_diagnostic_channel;
|
||||
public:
|
||||
io_state();
|
||||
io_state(formatter_factory const & fmtf);
|
||||
io_state(options const & opts, formatter_factory const & fmtf);
|
||||
io_state(io_state const & ios, std::shared_ptr<output_channel> const & r, std::shared_ptr<output_channel> const d);
|
||||
|
|
Loading…
Reference in a new issue