aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/common
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-04 16:39:58 +0200
committerEgor Tensin <egor@tensin.name>2026-06-04 16:41:09 +0200
commitc547aac3154962508fed5829d4c166394f2c168b (patch)
tree61338991c93dded56dfede2a983d4cefebc64d18 /server/common
parentadjust the formatting a little bit (diff)
downloadmath-server-c547aac3154962508fed5829d4c166394f2c168b.tar.gz
math-server-c547aac3154962508fed5829d4c166394f2c168b.zip
fix std::string_view usage
Diffstat (limited to 'server/common')
-rw-r--r--server/common/log.hpp4
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)));
}