asherliu / thrust

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

implement transform_iterator / lambda function interoperability #341

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Right now, transform_iterator requires AdaptableUnaryFunction of its functor, 
because it searches for a nested result_type.  This doesn't work with lambda 
placeholder arithmetic, because their types are not adaptable.

We should do the following:

1. Introduce thrust::detail::result_of.

2. Delegate the task of inferring the result of transform_iterator's functor to 
thrust::detail::result_of.

3. Specialize thrust::detail::result_of for thrust::detail::functional::actor.

Original issue reported on code.google.com by jaredhoberock on 8 Jun 2011 at 1:53

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 43d30e970b27.

Original comment by jaredhoberock on 8 Jun 2011 at 7:44