From 98ffe773286dc20d0802018a9bad07f9dabf89b1 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 7 Dec 2024 19:03:57 +0200 Subject: [PATCH] Removed virtual clone and dtor from logger --- include/spdlog/logger.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 5798c0b1..8ee2c6c2 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -60,7 +60,7 @@ public: logger(const logger &other) noexcept; logger(logger &&other) noexcept; - virtual ~logger() = default; + ~logger() = default; template void log(source_loc loc, level lvl, format_string_t fmt, Args &&...args) { @@ -168,7 +168,7 @@ public: void set_error_handler(err_handler); // create new logger with same sinks and configuration. - virtual std::shared_ptr clone(std::string logger_name); + std::shared_ptr clone(std::string logger_name); private: std::string name_;