Hacker News new | ask | show | jobs
by dearrifling 2609 days ago
One shouldn't std::move in a return. Returning a local is already automatically an rvalue, however explicitly moving it disables copy elision.
1 comments

You are completely right. That should be fixed