Skip to content

Commit 8826011

Browse files
authored
Merge pull request #2102 from yzz-ihep/v1.x
fix mongo_sink<std::mutex>::instance_ template
2 parents 7812a4c + d6a78cb commit 8826011

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/spdlog/sinks/mongo_sink.h

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class mongo_sink : public base_sink<Mutex>
7272
std::string coll_name_;
7373
std::unique_ptr<mongocxx::client> client_ = nullptr;
7474
};
75+
template<>
7576
mongocxx::instance mongo_sink<std::mutex>::instance_{};
7677

7778
#include "spdlog/details/null_mutex.h"

0 commit comments

Comments
 (0)