diff --git a/thrust/thrust/async/scan.h b/thrust/thrust/async/scan.h index ca66455b43b..46d5371753f 100644 --- a/thrust/thrust/async/scan.h +++ b/thrust/thrust/async/scan.h @@ -112,6 +112,27 @@ struct inclusive_scan_fn final THRUST_FWD(out), thrust::plus<>{})) + template + auto operator()(thrust::detail::execution_policy_base const& exec, + ForwardIt&& first, + Sentinel&& last, + OutputIt&& out, + InitialValueType&& init, + BinaryOp&& op) const + // ADL dispatch. + THRUST_RETURNS(async_inclusive_scan( + thrust::detail::derived_cast(thrust::detail::strip_const(exec)), + THRUST_FWD(first), + THRUST_FWD(last), + THRUST_FWD(out), + THRUST_FWD(init), + THRUST_FWD(op))) + template