tadeja opened a new pull request, #50705:
URL: https://github.com/apache/arrow/pull/50705
### Rationale for this change
Fix #50636 - `test-r-macos-as-cran` nightly job fails compiling
`visit({range_start, range_cur})` introduced in #50248.
```console
/Users/runner/work/crossbow/crossbow/arrow/cpp/src/arrow/compute/kernels/vector_sort.cc:325:11:
note: candidate function not viable: cannot convert initializer list argument
to 'std::span<uint64_t>' (aka 'span<unsigned long long>')
325 | [&](std::span<uint64_t> indices) { SortNextColumn(indices,
offset); });
```
The job pins [macOS SDK
11.3](https://github.com/ursacomputing/crossbow/actions/runs/30420027426/job/90474737457#step:9:14),
so libc++ there does not have C++20 iterator-pair span constructor available
yet ([available with libc++ 14](https://libcxx.llvm.org/Status/Cxx20.html)).
Similar problem as in recent #50295
### What changes are included in this PR?
Replace std::span iterator-pair constructor with subspan in `vector_sort.cc`
### Are these changes tested?
Yes, builds locally and will verify `test-r-macos-as-cran` via crossbow.
### Are there any user-facing changes?
No.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]