apparently I shouldn't std::move on return, let's pray to the compiler
[laserbrain_demo] / src / metascene.cc
index 6805fae..a85b65e 100644 (file)
@@ -180,7 +180,7 @@ std::list<SceneNode*> 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)