]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/compute/algorithm/remove_if.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / compute / algorithm / remove_if.hpp
index 9aece18bbdacebdc877205ed7af9bd44f8d5df86..a0e45d0c517a898423b80af6c91eb82b71e2382f 100644 (file)
 #ifndef BOOST_COMPUTE_ALGORITHM_REMOVE_IF_HPP
 #define BOOST_COMPUTE_ALGORITHM_REMOVE_IF_HPP
 
+#include <boost/static_assert.hpp>
+
 #include <boost/compute/system.hpp>
 #include <boost/compute/algorithm/copy_if.hpp>
 #include <boost/compute/container/vector.hpp>
 #include <boost/compute/functional/logical.hpp>
+#include <boost/compute/type_traits/is_device_iterator.hpp>
 
 namespace boost {
 namespace compute {
@@ -31,6 +34,7 @@ inline Iterator remove_if(Iterator first,
                           Predicate predicate,
                           command_queue &queue = system::default_queue())
 {
+    BOOST_STATIC_ASSERT(is_device_iterator<Iterator>::value);
     typedef typename std::iterator_traits<Iterator>::value_type value_type;
 
     // temporary storage for the input data