diff --git a/include/spdlog/async.h b/include/spdlog/async.h index 4225b799..b666b5ee 100644 --- a/include/spdlog/async.h +++ b/include/spdlog/async.h @@ -54,13 +54,13 @@ using async_factory_nonblock = async_factory_impl < async_overflow_policy::overr template inline std::shared_ptr create_async(const std::string &logger_name, SinkArgs &&... sink_args) { - return template async_factory::create(logger_name, std::forward(sink_args)...); + return async_factory::create(logger_name, std::forward(sink_args)...); } template inline std::shared_ptr create_async_nb(const std::string &logger_name, SinkArgs &&... sink_args) { - return template async_factory::create(logger_name, std::forward(sink_args)...); + return async_factory_nonblock::create(logger_name, std::forward(sink_args)...); }