fixed issue #137

This commit is contained in:
gabime 2015-11-05 15:43:37 +02:00
parent f36622553c
commit b85662c536

View File

@ -108,7 +108,7 @@ inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_
template <typename Sink, typename... Args>
inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_name, const Args&... args)
inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_name, Args&... args)
{
sink_ptr sink = std::make_shared<Sink>(args...);
return details::registry::instance().create(logger_name, { sink });