From 2278e9230fc20a78edeab91403a3a414793ab675 Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 2 Dec 2014 00:18:44 +0200 Subject: [PATCH] some fixes for gcc --- example/bench.cpp | 2 +- include/spdlog/details/pattern_formatter_impl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/bench.cpp b/example/bench.cpp index 70d2ef9d..f7e51204 100644 --- a/example/bench.cpp +++ b/example/bench.cpp @@ -113,7 +113,7 @@ void bench(int howmany, std::shared_ptr log) auto start = system_clock::now(); for (auto i = 0; i < howmany; ++i) { - log->info("Hello logger: msg number ", i); + log->info("Hello logger: msg number {}", i); } diff --git a/include/spdlog/details/pattern_formatter_impl.h b/include/spdlog/details/pattern_formatter_impl.h index 704f8931..e7561608 100644 --- a/include/spdlog/details/pattern_formatter_impl.h +++ b/include/spdlog/details/pattern_formatter_impl.h @@ -289,7 +289,7 @@ class T_formatter :public flag_formatter class z_formatter :public flag_formatter { public: - const std::chrono::seconds cache_refresh = const std::chrono::seconds(5); + const std::chrono::seconds cache_refresh = std::chrono::seconds(5); z_formatter() :_last_update(std::chrono::seconds(0)) {} z_formatter(const z_formatter&) = delete;