This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Description
As seen in this example, thrust::tuple_size< const thrust::tuple<T1, T2>> will fail to compile:
https://godbolt.org/z/M177q6Ye6
This is because tuple_size has a partial specialization for pair<T1,T2>, but not const pair<T1, T2>.
As a result, tuple_size for a const pair will hit the generic template for tuple_size, which is only valid for thrust::tuple types.