From: John Tsiombikas Date: Sun, 18 Mar 2018 08:44:52 +0000 (+0200) Subject: apparently I shouldn't std::move on return, let's pray to the compiler X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=commitdiff_plain;h=82367657a8ac442b29c1dad51c91e64a48e0671d apparently I shouldn't std::move on return, let's pray to the compiler it'll not copy the whole fucking list... --- diff --git a/src/metascene.cc b/src/metascene.cc index 6805fae..a85b65e 100644 --- a/src/metascene.cc +++ b/src/metascene.cc @@ -180,7 +180,7 @@ std::list MetaScene::match_nodes(const char *qstr) const res.splice(res.end(), tmp); } } - return std::move(res); + return res; // hopefully it'll be moved } Scene *MetaScene::extract_nodes(const char *qstr)