mirror of https://github.com/AxioDL/logvisor.git
Merge pull request #3 from lioncash/forward
logvisor: std::forward arguments where applicable
This commit is contained in:
commit
8ea97c524c
|
@ -220,7 +220,7 @@ public:
|
||||||
return;
|
return;
|
||||||
_vreport(severity, fmt::to_string_view<Char>(format),
|
_vreport(severity, fmt::to_string_view<Char>(format),
|
||||||
fmt::basic_format_args<fmt::buffer_context<Char>>(
|
fmt::basic_format_args<fmt::buffer_context<Char>>(
|
||||||
fmt::internal::make_args_checked<Args...>(format, args...)));
|
fmt::internal::make_args_checked<Args...>(format, std::forward<Args>(args)...)));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Char>
|
template <typename Char>
|
||||||
|
@ -242,10 +242,9 @@ public:
|
||||||
void reportSource(Level severity, const char* file, unsigned linenum, const S& format, Args&&... args) {
|
void reportSource(Level severity, const char* file, unsigned linenum, const S& format, Args&&... args) {
|
||||||
if (MainLoggers.empty() && severity != Level::Fatal)
|
if (MainLoggers.empty() && severity != Level::Fatal)
|
||||||
return;
|
return;
|
||||||
_vreportSource(
|
_vreportSource(severity, file, linenum, fmt::to_string_view<Char>(format),
|
||||||
severity, file, linenum, fmt::to_string_view<Char>(format),
|
fmt::basic_format_args<fmt::buffer_context<Char>>(
|
||||||
fmt::basic_format_args<fmt::buffer_context<Char>>(
|
fmt::internal::make_args_checked<Args...>(format, std::forward<Args>(args)...)));
|
||||||
fmt::internal::make_args_checked<Args...>(format, args...)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Char>
|
template <typename Char>
|
||||||
|
|
Loading…
Reference in New Issue