fixup! Added pong
This commit is contained in:
@@ -51,7 +51,7 @@ redirect_to_log(std::ostream &os)
|
||||
{
|
||||
// The basic_ios interface expectes a raw pointer...
|
||||
auto buf = new Log_Buffer<char>(256);
|
||||
auto old_buf = os.rdbuf(buf);
|
||||
// I guess we should delete this here?
|
||||
delete old_buf;
|
||||
os.rdbuf(buf);
|
||||
// We should not free the old buffer because it has not been allocated
|
||||
// dynamically.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user