From 5654205d6b1ddedaefe7481ca04d5337246fde06 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 24 Sep 2023 20:34:09 +0300 Subject: [PATCH] updated template instantiations --- src/sinks/base_sink.cpp | 2 +- src/sinks/color_sinks.cpp | 47 --------------------------------------- src/sinks/file_sinks.cpp | 0 3 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 src/sinks/color_sinks.cpp delete mode 100644 src/sinks/file_sinks.cpp diff --git a/src/sinks/base_sink.cpp b/src/sinks/base_sink.cpp index 188ab0ee..9c059cec 100644 --- a/src/sinks/base_sink.cpp +++ b/src/sinks/base_sink.cpp @@ -55,7 +55,7 @@ void spdlog::sinks::base_sink::set_pattern_(const std::string &pattern) } template -void spdlog::sinks::base_sink::set_formatter_(std::unique_ptr sink_formatter) +void spdlog::sinks::base_sink::set_formatter_(std::unique_ptr sink_formatter) { formatter_ = std::move(sink_formatter); } diff --git a/src/sinks/color_sinks.cpp b/src/sinks/color_sinks.cpp deleted file mode 100644 index a82934a6..00000000 --- a/src/sinks/color_sinks.cpp +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#include - -#include -#include -// -// color sinks -// -#ifdef _WIN32 -# include -template class SPDLOG_API spdlog::sinks::wincolor_sink; -template class SPDLOG_API spdlog::sinks::wincolor_sink; -template class SPDLOG_API spdlog::sinks::wincolor_stdout_sink; -template class SPDLOG_API spdlog::sinks::wincolor_stdout_sink; -template class SPDLOG_API spdlog::sinks::wincolor_stderr_sink; -template class SPDLOG_API spdlog::sinks::wincolor_stderr_sink; -#else -# include -template class SPDLOG_API spdlog::sinks::ansicolor_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_stdout_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_stdout_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_stderr_sink; -template class SPDLOG_API spdlog::sinks::ansicolor_stderr_sink; -#endif - -// factory methods for color loggers -//#include -//template SPDLOG_API std::shared_ptr spdlog::stdout_color_mt( -// const std::string &logger_name, color_mode mode); -//template SPDLOG_API std::shared_ptr spdlog::stdout_color_st( -// const std::string &logger_name, color_mode mode); -//template SPDLOG_API std::shared_ptr spdlog::stderr_color_mt( -// const std::string &logger_name, color_mode mode); -//template SPDLOG_API std::shared_ptr spdlog::stderr_color_st( -// const std::string &logger_name, color_mode mode); -// -//template SPDLOG_API std::shared_ptr spdlog::stdout_color_mt( -// const std::string &logger_name, color_mode mode); -//template SPDLOG_API std::shared_ptr spdlog::stdout_color_st( -// const std::string &logger_name, color_mode mode); -//template SPDLOG_API std::shared_ptr spdlog::stderr_color_mt( -// const std::string &logger_name, color_mode mode); -//template SPDLOG_API std::shared_ptr spdlog::stderr_color_st( -// const std::string &logger_name, color_mode mode); diff --git a/src/sinks/file_sinks.cpp b/src/sinks/file_sinks.cpp deleted file mode 100644 index e69de29b..00000000