From 4d1ee7c21e08011d6f2ac8b9f258a2807f7c3feb Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 3 Jun 2021 12:56:44 +1000 Subject: [PATCH] io: ensure override is used on overridden members --- io.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.hpp b/io.hpp index ee727c91..dedfc514 100644 --- a/io.hpp +++ b/io.hpp @@ -220,7 +220,7 @@ namespace cruft { class stream_error : public std::exception { public: - virtual const char* what (void) const noexcept + const char* what (void) const noexcept override { return "error on C stream"; } }; }