the return values should be eligible for copy elision
This commit is contained in:
parent
f348d4fc08
commit
ac3671def5
|
@ -50,7 +50,7 @@ std::vector<Token> tokenize_line(const std::string& line)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::move(tokens);
|
return tokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Main parsing function
|
// Main parsing function
|
||||||
|
@ -115,7 +115,7 @@ std::vector<Instruction> parse_instructions(const std::string& code_arg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return std::move(instructions);
|
return instructions;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_keyword(std::string str)
|
bool is_keyword(std::string str)
|
||||||
|
|
Loading…
Reference in a new issue