Added extern tempalate declarations

This commit is contained in:
gabime
2019-09-20 01:28:02 +03:00
parent 5496491aa4
commit e7ab49c973
4 changed files with 17 additions and 8 deletions

View File

@@ -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

View File

@@ -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