aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/parser/parser.hpp
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/parser/parser.hpp
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/parser/parser.hpp')
-rw-r--r--server/parser/parser.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/parser/parser.hpp b/server/parser/parser.hpp
index 5b17f70..ddce8d9 100644
--- a/server/parser/parser.hpp
+++ b/server/parser/parser.hpp
@@ -24,7 +24,7 @@ public:
// a finer algorithm for parsing arithmetic expressions.
// Reference: https://en.wikipedia.org/wiki/Operator-precedence_parser
- explicit Parser(const std::string_view& input) : m_lexer{input} {}
+ explicit Parser(std::string_view input) : m_lexer{input} {}
double exec() {
const auto result = exec_dmas();