Commit 5496491a authored by gabime's avatar gabime

Added extern template declarations

parent 53ca5b28
......@@ -100,12 +100,7 @@ using log_clock = std::chrono::system_clock;
using sink_ptr = std::shared_ptr<sinks::sink>;
using sinks_init_list = std::initializer_list<sink_ptr>;
using err_handler = std::function<void(const std::string &err_msg)>;
template<typename T>
using basic_string_view_t = fmt::basic_string_view<T>;
using string_view_t = basic_string_view_t<char>;
using string_view_t = fmt::basic_string_view<char>;
using memory_buf_t = fmt::basic_memory_buffer<char, 250>;
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
......@@ -248,4 +243,7 @@ std::unique_ptr<T> make_unique(Args &&... args)
#ifdef SPDLOG_HEADER_ONLY
#include "common-inl.h"
#else
extern template class fmt::basic_string_view<char>;
extern template class fmt::basic_memory_buffer<char, 250>;
#endif
......@@ -18,3 +18,5 @@
// template instantiate logger constructor with sinks init list
template spdlog::logger::logger(std::string name, sinks_init_list::iterator begin, sinks_init_list::iterator end);
template class fmt::basic_string_view<char>;
template class fmt::basic_memory_buffer<char, 250>;
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment