From 8ea86d52d2b2ec2edd655ad135de56e34fd17a05 Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Tue, 28 Feb 2023 17:11:05 +0000 Subject: [PATCH] Update yolo.hpp --- include/yolo/yolo.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/yolo/yolo.hpp b/include/yolo/yolo.hpp index e1130b6..f41130d 100644 --- a/include/yolo/yolo.hpp +++ b/include/yolo/yolo.hpp @@ -14,7 +14,7 @@ namespace detail { static std::vector> modules; template - std::string format(const std::string& format, Args... args) + inline std::string format(const std::string& format, Args... args) { std::ostringstream oss; size_t start = 0; size_t pos; @@ -23,7 +23,7 @@ namespace detail { return oss.str(); } - std::string formatTime() + inline std::string formatTime() { auto now = std::chrono::system_clock::now(); std::time_t time = std::chrono::system_clock::to_time_t(now);