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

thrust::tuple_size fails for "const thrust::pair<T1,T2>" #1456

@jrhemstad

Description

@jrhemstad

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions