missing begin in thrust::transform