]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/compute/algorithm/transform_if.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / compute / algorithm / transform_if.hpp
index 9a98102d275757fb4c5e64cadcfc6f8e59161e42..1f8572019551519fc155aec46f51637b83cb755b 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef BOOST_COMPUTE_ALGORITHM_TRANSFORM_IF_HPP
 #define BOOST_COMPUTE_ALGORITHM_TRANSFORM_IF_HPP
 
+#include <boost/static_assert.hpp>
+
 #include <boost/compute/cl.hpp>
 #include <boost/compute/system.hpp>
 #include <boost/compute/command_queue.hpp>
@@ -21,6 +23,7 @@
 #include <boost/compute/detail/meta_kernel.hpp>
 #include <boost/compute/detail/iterator_range_size.hpp>
 #include <boost/compute/iterator/discard_iterator.hpp>
+#include <boost/compute/type_traits/is_device_iterator.hpp>
 
 namespace boost {
 namespace compute {
@@ -107,6 +110,8 @@ inline OutputIterator transform_if(InputIterator first,
                                    Predicate predicate,
                                    command_queue &queue = system::default_queue())
 {
+    BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
+    BOOST_STATIC_ASSERT(is_device_iterator<OutputIterator>::value);
     return detail::transform_if_impl(
         first, last, result, function, predicate, false, queue
     );