From db103ff3408001998ebc27de5ad9ecd13b0f42cd Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 10 Jul 2019 01:42:43 +0300 Subject: [PATCH] Replaced passing time by val istead of ref in helper --- include/spdlog/details/fmt_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index 773ad236..67494ed5 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -107,7 +107,7 @@ inline void pad9(T n, fmt::basic_memory_buffer &dest) // e.g. // fraction(tp) -> will return the millis part of the second template -inline ToDuration time_fraction(const log_clock::time_point &tp) +inline ToDuration time_fraction(log_clock::time_point tp) { using std::chrono::duration_cast; using std::chrono::seconds;