aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/lexer/token.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 19:23:10 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 19:23:10 +0200
commit880e8c45c5621ed8432b74a0cf4f212b9c14aade (patch)
treeaa13bb1cc8d64db07b51c859b3277f1cdc855876 /server/lexer/token.cpp
parentget rid of functionality removed in newer Boost (diff)
downloadmath-server-880e8c45c5621ed8432b74a0cf4f212b9c14aade.tar.gz
math-server-880e8c45c5621ed8432b74a0cf4f212b9c14aade.zip
finally, perfect .clang-format settings?
Diffstat (limited to 'server/lexer/token.cpp')
-rw-r--r--server/lexer/token.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/lexer/token.cpp b/server/lexer/token.cpp
index 61ab1e7..e2d0a3f 100644
--- a/server/lexer/token.cpp
+++ b/server/lexer/token.cpp
@@ -49,8 +49,9 @@ bool Token::operator==(const Token& other) const {
if (m_type == Type::NUMBER) {
return numbers_equal(as_number(), other.as_number());
}
- throw LexerError{"internal: can't compare tokens of type: " +
- token::type_to_int_string(m_type)};
+ throw LexerError{
+ "internal: can't compare tokens of type: " + token::type_to_int_string(m_type)
+ };
}
double Token::as_number() const {