diff --git a/include/logvisor/logvisor.hpp b/include/logvisor/logvisor.hpp index 83599ba..20c5450 100644 --- a/include/logvisor/logvisor.hpp +++ b/include/logvisor/logvisor.hpp @@ -220,7 +220,7 @@ public: return; _vreport(severity, fmt::to_string_view(format), fmt::basic_format_args>( - fmt::internal::make_args_checked(format, args...))); + fmt::internal::make_args_checked(format, std::forward(args)...))); } template @@ -242,10 +242,9 @@ public: void reportSource(Level severity, const char* file, unsigned linenum, const S& format, Args&&... args) { if (MainLoggers.empty() && severity != Level::Fatal) return; - _vreportSource( - severity, file, linenum, fmt::to_string_view(format), - fmt::basic_format_args>( - fmt::internal::make_args_checked(format, args...))); + _vreportSource(severity, file, linenum, fmt::to_string_view(format), + fmt::basic_format_args>( + fmt::internal::make_args_checked(format, std::forward(args)...))); } template