mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Added loc_with_fmt overload with runtime_format_string
This commit is contained in:
parent
bcc24961a0
commit
5ae1ace844
@ -291,6 +291,13 @@ struct loc_with_fmt
|
|||||||
: loc(loc)
|
: loc(loc)
|
||||||
, fmt_string(fmt_str)
|
, fmt_string(fmt_str)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
#ifndef SPDLOG_USE_STD_FORMAT
|
||||||
|
constexpr loc_with_fmt(fmt::runtime_format_string<char> fmt_str, source_loc loc = source_loc::current()) noexcept
|
||||||
|
: loc(loc)
|
||||||
|
, fmt_string(fmt_str.str)
|
||||||
|
{}
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct file_event_handlers
|
struct file_event_handlers
|
||||||
|
Loading…
Reference in New Issue
Block a user