News for hackers. Stuff that matters.
Re:Sparrow, a Modern C++ Implementation of the Apache Arrow ... by quietbritishjim on Friday January 31, 2025 @11:54PM (#42895767)
> So the answer is that the `std::move` does nothing and should be omitted

You can't assign an rvalue into an lvalue reference, precisely to avoid this sort of mistake. If this is the only overload then this just wouldn't compile (e.g. [1]). So the std::move isn't doing nothing, but yes it should be omitted. Maybe it's just a weird typo.

[1] https://ideone.com/4NS5dI

Re:Sparrow, a Modern C++ Implementation of the Apache Arrow ... by tempodox on Saturday February 01, 2025 @08:56AM (#42898292)
Indeed, I don't even have to compile it, vim (+ Syntastic) tells me as soon as it sees it:

  candidate function not viable: expects an lvalue for 1st argument