diff --git a/include/spdlog/details/spdlog_impl.h b/include/spdlog/details/spdlog_impl.h index a8011db4..02a21586 100644 --- a/include/spdlog/details/spdlog_impl.h +++ b/include/spdlog/details/spdlog_impl.h @@ -72,12 +72,12 @@ inline std::shared_ptr spdlog::rotating_logger_st(const std::str // Create file logger which creates new file at midnight): inline std::shared_ptr spdlog::daily_logger_mt(const std::string& logger_name, const filename_t& filename, int hour, int minute) { - return create(logger_name, filename, SPDLOG_FILENAME_T("txt"), hour, minute); + return create>(logger_name, filename, SPDLOG_FILENAME_T("txt"), hour, minute); } inline std::shared_ptr spdlog::daily_logger_st(const std::string& logger_name, const filename_t& filename, int hour, int minute) { - return create(logger_name, filename, SPDLOG_FILENAME_T("txt"), hour, minute); + return create>(logger_name, filename, SPDLOG_FILENAME_T("txt"), hour, minute); } diff --git a/include/spdlog/sinks/file_sinks.h b/include/spdlog/sinks/file_sinks.h index d40499b6..f5e03901 100644 --- a/include/spdlog/sinks/file_sinks.h +++ b/include/spdlog/sinks/file_sinks.h @@ -238,7 +238,10 @@ private: details::file_helper _file_helper; }; -typedef daily_file_sink daily_file_sink_mt; -typedef daily_file_sink daily_file_sink_st; +template +using daily_file_sink_mt = daily_file_sink; + +template +using daily_file_sink_st = daily_file_sink; } }