NVIDIA / NVIDIA/cccl

tagged_iterator does not propagate its tag to its nested pointer & reference types

Open
#678 0 comments 0 reactions 0 assignees View on GitHub
thrust
Dominant language
C++
Stars
2.5k
Forks
487
Avg merge
2d 7h
Merged PRs (30d)
296

Description

consider

```
int *raw_ptr;
auto ptr = reinterpret_tag(raw_ptr);
```

The result of `*ptr` is `int &` when it should be `reference`.

The result of `&*ptr` is `int *` when it should be `pointer`.

After this is fixed, clean up the implementation of `cuda::detail::fill_n` so that it doesn't have to use `thrust::pointer` directly.

Forwarded from http://code.google.com/p/thrust/issues/detail?id=462

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.