summaryrefslogtreecommitdiff
path: root/boost/compute/algorithm/copy_n.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/compute/algorithm/copy_n.hpp')
-rw-r--r--boost/compute/algorithm/copy_n.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/boost/compute/algorithm/copy_n.hpp b/boost/compute/algorithm/copy_n.hpp
index 5280193497..9920432cdf 100644
--- a/boost/compute/algorithm/copy_n.hpp
+++ b/boost/compute/algorithm/copy_n.hpp
@@ -37,14 +37,16 @@ template<class InputIterator, class Size, class OutputIterator>
inline OutputIterator copy_n(InputIterator first,
Size count,
OutputIterator result,
- command_queue &queue = system::default_queue())
+ command_queue &queue = system::default_queue(),
+ const wait_list &events = wait_list())
{
typedef typename std::iterator_traits<InputIterator>::difference_type difference_type;
return ::boost::compute::copy(first,
first + static_cast<difference_type>(count),
result,
- queue);
+ queue,
+ events);
}
} // end compute namespace