From c547aac3154962508fed5829d4c166394f2c168b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 Jun 2026 16:39:58 +0200 Subject: fix std::string_view usage --- server/common/log.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/common') diff --git a/server/common/log.hpp b/server/common/log.hpp index 0d5bb19..52f96c1 100644 --- a/server/common/log.hpp +++ b/server/common/log.hpp @@ -41,12 +41,12 @@ inline void log(const std::string& msg) { } // namespace details template -inline void log(const std::string_view& fmt, Args&&... args) { +inline void log(std::string_view fmt, Args&&... args) { details::log(boost::str((boost::format(fmt.data()) % ... % args))); } template -inline void error(const std::string_view& fmt, Args&&... args) { +inline void error(std::string_view fmt, Args&&... args) { details::log(boost::str((boost::format(fmt.data()) % ... % args))); } -- cgit v1.3