diff --git a/templates/c++/lr.h b/templates/c++/lr.h index 7a86463..26be0c4 100644 --- a/templates/c++/lr.h +++ b/templates/c++/lr.h @@ -164,7 +164,7 @@ Value {{name}}::parse() { expected.emplace_back(static_cast<{{name}}_Symbol>(i)); } Token report = Token{tok.symbol, std::move(tok.value)}; - Value errorVal = error(report, expected); + Value errorVal = error(std::move(report), expected); while (!valueStack.empty() && (TABLE[stateStack.top()][verr] & 0x3) == ERROR) { valueStack.pop();