Skip to content

Commit

Permalink
Merge pull request #2102 from yzz-ihep/v1.x
Browse files Browse the repository at this point in the history
fix mongo_sink<std::mutex>::instance_ template
  • Loading branch information
gabime authored Sep 12, 2021
2 parents 7812a4c + d6a78cb commit 8826011
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/spdlog/sinks/mongo_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class mongo_sink : public base_sink<Mutex>
std::string coll_name_;
std::unique_ptr<mongocxx::client> client_ = nullptr;
};
template<>
mongocxx::instance mongo_sink<std::mutex>::instance_{};

#include "spdlog/details/null_mutex.h"
Expand Down

0 comments on commit 8826011

Please sign in to comment.