mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-28 00:10:21 +08:00
Revert "force constexpr of empty source_loc"
This reverts commit 7e3700f650
.
This commit is contained in:
parent
7e3700f650
commit
68e71cfc49
@ -77,8 +77,7 @@ public:
|
|||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
void log(level lvl, format_string_t<Args...> fmt, Args &&...args) {
|
void log(level lvl, format_string_t<Args...> fmt, Args &&...args) {
|
||||||
if (should_log(lvl)) {
|
if (should_log(lvl)) {
|
||||||
constexpr source_loc empty_loc{};
|
log_with_format_(source_loc{}, lvl, details::to_string_view(fmt),
|
||||||
log_with_format_(empty_loc, lvl, details::to_string_view(fmt),
|
|
||||||
std::forward<Args>(args)...);
|
std::forward<Args>(args)...);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -99,8 +98,7 @@ public:
|
|||||||
|
|
||||||
void log(level lvl, string_view_t msg) {
|
void log(level lvl, string_view_t msg) {
|
||||||
if (should_log(lvl)) {
|
if (should_log(lvl)) {
|
||||||
constexpr source_loc empty_loc{};
|
sink_it_(details::log_msg(source_loc{}, name_, lvl, msg));
|
||||||
sink_it_(details::log_msg(empty_loc, name_, lvl, msg));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user