Added loc_with_fmt overload with runtime_format_string

This commit is contained in:
gabime 2023-09-16 01:00:55 +03:00
parent bcc24961a0
commit 5ae1ace844

View File

@ -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