diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index 10573cf1..34f4ee33 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -72,6 +72,7 @@ private: std::string coll_name_; std::unique_ptr client_ = nullptr; }; +template<> mongocxx::instance mongo_sink::instance_{}; #include "spdlog/details/null_mutex.h"