Fix return type of predicate_to_integral::operator()
MODIFY
thrust/detail/internal_functional.h
thrust/detail/internal_functional.h
@@ -99,7 +99,7 @@ struct predicate_to_integral
template <typename T>
__host__ __device__
- bool operator()(const T& x)
+ IntegralType operator()(const T& x)
{
return pred(x) ? IntegralType(1) : IntegralType(0);
}

Fix return type of predicate_to_integral::operator()