From d6a78cb85b8bb5b530e07861839a66b6d8f46c18 Mon Sep 17 00:00:00 2001 From: yunzhong <1445277435@qq.com> Date: Sun, 12 Sep 2021 15:25:55 +0800 Subject: [PATCH] fix mongo_sink::instance_ template --- include/spdlog/sinks/mongo_sink.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index 10573cf1e..34f4ee337 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -72,6 +72,7 @@ class mongo_sink : public base_sink std::string coll_name_; std::unique_ptr client_ = nullptr; }; +template<> mongocxx::instance mongo_sink::instance_{}; #include "spdlog/details/null_mutex.h"