clover: Switch to the new utility code.
[mesa.git] / src / gallium / state_trackers / clover / api / context.cpp
index 371744120eed586b1cf485773034b6cdc00925e9..8586b3ece254f106e27a6ee166c945633cd5756b 100644 (file)
@@ -37,7 +37,7 @@ clCreateContext(const cl_context_properties *props, cl_uint num_devs,
        (!pfn_notify && user_data))
       throw error(CL_INVALID_VALUE);
 
-   if (any_of(is_zero<cl_device_id>, devs, devs + num_devs))
+   if (any_of(is_zero(), range(devs, num_devs)))
       throw error(CL_INVALID_DEVICE);
 
    for (auto p : mprops) {