mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 03:19:02 +08:00
Added extern tempalate declarations
This commit is contained in:
@@ -43,4 +43,6 @@ public:
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#include "backtracer-inl.h"
|
||||
#else
|
||||
extern template class spdlog::details::circular_q<spdlog::details::log_msg_buffer>;
|
||||
#endif
|
@@ -13,6 +13,7 @@
|
||||
#include "spdlog/details/log_msg.h"
|
||||
#include "spdlog/sinks/sink.h"
|
||||
|
||||
|
||||
namespace spdlog {
|
||||
namespace sinks {
|
||||
template<typename Mutex>
|
||||
@@ -43,4 +44,9 @@ protected:
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#include "base_sink-inl.h"
|
||||
#else
|
||||
#include "spdlog/details/null_mutex.h"
|
||||
#include <mutex>
|
||||
extern template class spdlog::sinks::base_sink<std::mutex>;
|
||||
extern template class spdlog::sinks::base_sink<spdlog::details::null_mutex>;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user