Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One shouldn't std::move in a return. Returning a local is already automatically an rvalue, however explicitly moving it disables copy elision.


You are completely right. That should be fixed




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: