From 0879dea444786d4d42b903ddffb8a5f9e3168743 Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 27 Sep 2018 00:39:17 +0300 Subject: [PATCH] Fixed clang-tidy warning --- include/spdlog/details/fmt_helper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index 1d84e5eb..743b844a 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -115,7 +115,8 @@ inline void pad6(size_t n, fmt::basic_memory_buffer &dest) template inline ToDuration time_fraction(const log_clock::time_point &tp) { - using namespace std::chrono; + using std::chrono::duration_cast; + using std::chrono::seconds; auto duration = tp.time_since_epoch(); auto secs = duration_cast(duration); return duration_cast(duration) - duration_cast(secs);