diff --git a/include/spdlog/details/pattern_formatter-inl.h b/include/spdlog/details/pattern_formatter-inl.h index 6fdc78a9..5fcce29e 100644 --- a/include/spdlog/details/pattern_formatter-inl.h +++ b/include/spdlog/details/pattern_formatter-inl.h @@ -90,7 +90,7 @@ struct null_scoped_padder }; template -class name_formatter : public flag_formatter +class name_formatter final : public flag_formatter { public: explicit name_formatter(padding_info padinfo) @@ -106,7 +106,7 @@ public: // log level appender template -class level_formatter : public flag_formatter +class level_formatter final : public flag_formatter { public: explicit level_formatter(padding_info padinfo) @@ -123,7 +123,7 @@ public: // short log level appender template -class short_level_formatter : public flag_formatter +class short_level_formatter final : public flag_formatter { public: explicit short_level_formatter(padding_info padinfo) @@ -156,7 +156,7 @@ static int to12h(const tm &t) static std::array days{{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}}; template -class a_formatter : public flag_formatter +class a_formatter final : public flag_formatter { public: explicit a_formatter(padding_info padinfo) @@ -194,7 +194,7 @@ public: static const std::array months{{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"}}; template -class b_formatter : public flag_formatter +class b_formatter final : public flag_formatter { public: explicit b_formatter(padding_info padinfo) @@ -214,7 +214,7 @@ static const std::array full_months{ {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}}; template -class B_formatter : public flag_formatter +class B_formatter final : public flag_formatter { public: explicit B_formatter(padding_info padinfo)