2
0
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:
Kyle Lutz
2014-12-03 23:26:24 -08:00

View File

@@ -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);