mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-11 23:20:49 +08:00
Pass source loc by ref
This commit is contained in:
parent
adaf0554be
commit
2ef467be7d
@ -170,7 +170,7 @@ private:
|
||||
// common implementation for after templated public api has been resolved to format string and
|
||||
// args
|
||||
template <typename... Args>
|
||||
void log_with_format_(source_loc loc, const level lvl, const format_string_t<Args...> &format_string, Args &&...args) {
|
||||
void log_with_format_(const source_loc &loc, const level lvl, const format_string_t<Args...> &format_string, Args &&...args) {
|
||||
assert(should_log(lvl));
|
||||
try {
|
||||
memory_buf_t buf;
|
||||
|
Loading…
Reference in New Issue
Block a user