Re:Sparrow, a Modern C++ Implementation of the Apache Arrow ...
by SylvainCorlay on Saturday February 01, 2025 @08:53AM
(#42898275)
Excellent catch.
This std::move should not have been in this code snippet. It is a copy-paste mistake, carried over from the previous code snippet of the post, and should have been omitted.
(The `std::move` does nothing in this snippet, since `sp::get_arrow_structure` takes and lvalue reference).
In the previous example with `sp::extract_arrow_structures`, which takes an rvalue reference, std::move is required and the sparrow primitive array cannot be operated upon after.
This std::move should not have been in this code snippet. It is a copy-paste mistake, carried over from the previous code snippet of the post, and should have been omitted.
(The `std::move` does nothing in this snippet, since `sp::get_arrow_structure` takes and lvalue reference).
In the previous example with `sp::extract_arrow_structures`, which takes an rvalue reference, std::move is required and the sparrow primitive array cannot be operated upon after.