Commit 408197f6 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[real-time-logger-def] Add a virtual destructor to a class with virtual methods.

parent 0fcdca60
......@@ -32,6 +32,7 @@ public:
class LoggerIOStream : public LoggerStream {
public:
LoggerIOStream(std::ostream &os) : os_(os) {}
virtual ~LoggerIOStream() {}
virtual void write(const char *c) { os_ << c; }
private:
......
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