[BUG]: temporary storage size fails to compile
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 486
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 295
Description
### Is this a duplicate?
- [X] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cccl/issues) for this bug and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)
### Type of Bug
Compile-time Error
### Component
CUB
### Describe the bug
Trying to use a temporary for the `temp_storage_size`, e.g., by calling `thrust::device_vector::size()`, fails to compile because the algorithms require a non-`const` lvalue ref.
Repro: `cub::DeviceReduce::Reduce(thrust_device_vector.data().get(), thrust_device_vector.size(), ...)`.
### How to Reproduce
See the above.
### Expected behavior
Should work.
### Reproduction link
_No response_
### Operating System
_No response_
### nvidia-smi output
_No response_
### NVCC version
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.