[BUG]: `cuda::std::uninitialized_copy_n` fails to copy thrust device vectors
- 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
libcu++
### Describe the bug
Code below fails to compile
```c++
#include
#include
int main() {
thrust::device_vector v1(10);
thrust::device_vector v2(10, thrust::no_init);
cuda::std::uninitialized_copy_n(v1.begin(), 10, v2.begin());
return 0;
}
```
### How to Reproduce
https://cuda.godbolt.org/z/b1o1f6dff
### Expected behavior
It should compile and 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.