Small bug-fix to compile correctly when not in header only

The destructor of the registry is defaulted, which is equivalent to
inlining but if the default declaration is in the header, when compiling
the library, the forward declaration of the formatter is not being
resolved yet which doesn't allow a clean compilation
pull/1216/head
Stefano Caiazza 6 years ago
parent 822a51668a
commit 6bdc562090

@ -47,6 +47,9 @@ SPDLOG_INLINE registry::registry()
#endif // SPDLOG_DISABLE_DEFAULT_LOGGER #endif // SPDLOG_DISABLE_DEFAULT_LOGGER
} }
registry::~registry() = default;
SPDLOG_INLINE void registry::register_logger(std::shared_ptr<logger> new_logger) SPDLOG_INLINE void registry::register_logger(std::shared_ptr<logger> new_logger)
{ {
std::lock_guard<std::mutex> lock(logger_map_mutex_); std::lock_guard<std::mutex> lock(logger_map_mutex_);

@ -30,7 +30,7 @@ class registry
public: public:
// Default constructor // Default constructor
registry(); registry();
~registry() = default; ~registry();
registry(const registry &) = delete; registry(const registry &) = delete;
registry &operator=(const registry &) = delete; registry &operator=(const registry &) = delete;

Loading…
Cancel
Save