diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-04 16:39:58 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-04 16:41:09 +0200 |
| commit | c547aac3154962508fed5829d4c166394f2c168b (patch) | |
| tree | 61338991c93dded56dfede2a983d4cefebc64d18 /server/common | |
| parent | adjust the formatting a little bit (diff) | |
| download | math-server-c547aac3154962508fed5829d4c166394f2c168b.tar.gz math-server-c547aac3154962508fed5829d4c166394f2c168b.zip | |
fix std::string_view usage
Diffstat (limited to 'server/common')
| -rw-r--r-- | server/common/log.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <typename... Args> -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 <typename... Args> -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))); } |
