Revert "force constexpr of empty source_loc"

This reverts commit 7e3700f650.
This commit is contained in:
gabime 2023-12-25 00:03:16 +02:00
parent 7e3700f650
commit 68e71cfc49

View File

@ -77,8 +77,7 @@ public:
template <typename... Args>
void log(level lvl, format_string_t<Args...> fmt, Args &&...args) {
if (should_log(lvl)) {
constexpr source_loc empty_loc{};
log_with_format_(empty_loc, lvl, details::to_string_view(fmt),
log_with_format_(source_loc{}, lvl, details::to_string_view(fmt),
std::forward<Args>(args)...);
}
}
@ -99,8 +98,7 @@ public:
void log(level lvl, string_view_t msg) {
if (should_log(lvl)) {
constexpr source_loc empty_loc{};
sink_it_(details::log_msg(empty_loc, name_, lvl, msg));
sink_it_(details::log_msg(source_loc{}, name_, lvl, msg));
}
}