mirror of
https://github.com/boostorg/compute.git
synced 2026-01-30 19:52:16 +00:00
Merge pull request #329 from kylelutz/fully-qualify-bind
Fully qualify call to bind() in nth_element()
This commit is contained in:
@@ -39,7 +39,9 @@ inline void nth_element(Iterator first,
|
||||
value_type value = nth.read(queue);
|
||||
|
||||
using boost::compute::placeholders::_1;
|
||||
Iterator new_nth = partition(first, last, bind(compare, _1, value), queue);
|
||||
Iterator new_nth = partition(
|
||||
first, last, ::boost::compute::bind(compare, _1, value), queue
|
||||
);
|
||||
|
||||
Iterator old_nth = find(new_nth, last, value, queue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user