From ac3671def5d2b702a8768460408a8f85bde7ec76 Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Wed, 24 Nov 2021 14:58:03 +0100 Subject: [PATCH] the return values should be eligible for copy elision --- src/parse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse.cpp b/src/parse.cpp index d9e5010..ada62fc 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -50,7 +50,7 @@ std::vector tokenize_line(const std::string& line) } } - return std::move(tokens); + return tokens; } // Main parsing function @@ -115,7 +115,7 @@ std::vector parse_instructions(const std::string& code_arg) } - return std::move(instructions); + return instructions; } bool is_keyword(std::string str)