You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had this problem in the past, so here are some thoughts: I could not find an easy solution in C++17, but it works out of the box in C++20 (via P1021]. A deduction guide for the alias does not work. The best solution I found back than (for a more complex type) was to inherit instead of alias in C++17, and redefine the public API where necessary:
Is this a duplicate?
Type of Bug
Compile-time Error
Component
Thrust
Describe the bug
The refactor to make
thrust::pair
an alias forcuda::std::pair
ended up breaking CTAD because CTAD doesn't work for alias templates.How to Reproduce
Try to compile:
yields:
Expected behavior
CTAD should work for
thrust::pair
.Reproduction link
https://godbolt.org/z/1s6as73bb
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered: