lion03 / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
consider

int *raw_ptr;

auto ptr = reinterpret_tag<Tag>(raw_ptr);

The result of *ptr is int & when it should be reference<int,Tag>

The result of &*ptr is int * when it should be pointer<int,Tag>

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

Original issue reported on code.google.com by jaredhoberock on 8 Feb 2012 at 11:10

GoogleCodeExporter commented 8 years ago
Forwarded from https://github.com/thrust/thrust/issues/42

Original comment by jaredhoberock on 7 May 2012 at 8:42