Safer virtual methods; this breaks compatibility with GCC 4.6

This commit is contained in:
Pavel Kirienko
2015-06-09 23:05:49 +03:00
parent 9ac2813cea
commit 7b44bf8822
6 changed files with 18 additions and 18 deletions
@@ -21,7 +21,7 @@ namespace uavcan_linux
*/
class DefaultLogSink : public uavcan::ILogSink
{
virtual void log(const uavcan::protocol::debug::LogMessage& message)
void log(const uavcan::protocol::debug::LogMessage& message) override
{
const auto tt = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
const auto tstr = std::ctime(&tt);