From cf689e64b144591fdb697a4e7f1bf1012310ccff Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Thu, 26 Jan 2017 12:53:55 +0100 Subject: [PATCH] Missed a move --- templates/c++/lr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();