diff --git a/thrust/system/detail/generic/find.inl b/thrust/system/detail/generic/find.inl index 9414fc615..a7126825d 100644 --- a/thrust/system/detail/generic/find.inl +++ b/thrust/system/detail/generic/find.inl @@ -45,8 +45,9 @@ InputIterator find(thrust::execution_policy &exec, InputIterator last, const T& value) { - // XXX consider a placeholder expression here - return thrust::find_if(exec, first, last, thrust::detail::equal_to_value(value)); + using thrust::placeholders::_1; + + return thrust::find_if(exec, first, last, _1 == value); } // end find()