diff --git a/include/spdlog/details/registry-inl.h b/include/spdlog/details/registry-inl.h index c5f3e2f4..93342383 100644 --- a/include/spdlog/details/registry-inl.h +++ b/include/spdlog/details/registry-inl.h @@ -47,6 +47,9 @@ SPDLOG_INLINE registry::registry() #endif // SPDLOG_DISABLE_DEFAULT_LOGGER } + +registry::~registry() = default; + SPDLOG_INLINE void registry::register_logger(std::shared_ptr new_logger) { std::lock_guard lock(logger_map_mutex_); diff --git a/include/spdlog/details/registry.h b/include/spdlog/details/registry.h index 8c277486..a75e3a47 100644 --- a/include/spdlog/details/registry.h +++ b/include/spdlog/details/registry.h @@ -30,7 +30,7 @@ class registry public: // Default constructor registry(); - ~registry() = default; + ~registry(); registry(const registry &) = delete; registry &operator=(const registry &) = delete;