Commit 515f61ad authored by Damien Leroux's avatar Damien Leroux
Browse files

Hacked a #define to make the tests/ code work.

parent 3ea45283
......@@ -84,16 +84,20 @@ struct ostream_manager {
, forbid()
, cerr(old_cerr_rdbuf), cout(old_cout_rdbuf), clog(&hi)
{
#ifndef SPELL_UNSAFE_OUTPUT
std::clog.rdbuf(&forbid);
std::cout.rdbuf(&forbid);
std::cerr.rdbuf(&forbid);
#endif
}
~ostream_manager()
{
#ifndef SPELL_UNSAFE_OUTPUT
std::clog.rdbuf(old_clog_rdbuf);
std::cout.rdbuf(old_cout_rdbuf);
std::cerr.rdbuf(old_cerr_rdbuf);
#endif
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment