Enable std::source_location if SPDLOG_EMIT_SOURCE_LOCATION is defined

This commit is contained in:
gabime
2023-09-15 15:49:52 +03:00
parent 1f2561c548
commit b2372fd076
4 changed files with 159 additions and 72 deletions

View File

@@ -10,7 +10,7 @@
void bench_formatter(benchmark::State &state, std::string pattern)
{
auto formatter = spdlog::std::make_unique<spdlog::pattern_formatter>(pattern);
auto formatter = std::make_unique<spdlog::pattern_formatter>(pattern);
spdlog::memory_buf_t dest;
std::string logger_name = "logger-name";
const char *text = "Hello. This is some message with length of 80 ";