From 9e0c658b29e643123446f747240db9e7d2240bf7 Mon Sep 17 00:00:00 2001 From: Muhammed Galib Uludag Date: Sun, 27 Jun 2021 20:17:19 +0300 Subject: [PATCH] factory functions namespace fix --- include/spdlog/sinks/mongo_sink.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index c2891087..afcda1fd 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -83,7 +83,9 @@ mongocxx::instance mongo_sink::instance_{}; using mongo_sink_mt = mongo_sink; using mongo_sink_st = mongo_sink; -template +} // namespace sinks + + template inline std::shared_ptr mongo_logger_mt(const std::string &logger_name, const std::string &db_name, const std::string &collection_name, @@ -100,6 +102,6 @@ mongo_logger_st(const std::string &logger_name, const std::string &db_name, return Factory::template create(logger_name, db_name, collection_name, uri); } -} // namespace sinks + } // namespace spdlog