News for hackers. Stuff that matters.
Re:Modern C++ Won't Save Us by dearrifling on Tuesday April 23, 2019 @02:04AM (#19725974)
One shouldn't std::move in a return. Returning a local is already automatically an rvalue, however explicitly moving it disables copy elision.
Re:Modern C++ Won't Save Us by petters on Tuesday April 23, 2019 @02:22AM (#19726077)
You are completely right. That should be fixed