Replace string pointer with string_view in log_msg

This commit is contained in:
gabime
2019-06-04 16:10:49 +03:00
parent efc358da9f
commit 33a42202c7
8 changed files with 31 additions and 32 deletions

View File

@@ -15,7 +15,7 @@ void bench_formatter(benchmark::State &state, std::string pattern)
std::string logger_name = "logger-name";
const char *text = "Hello. This is some message with length of 80 ";
spdlog::details::log_msg msg(&logger_name, spdlog::level::info, text);
spdlog::details::log_msg msg(logger_name, spdlog::level::info, text);
for (auto _ : state)
{