]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/compute/algorithm/next_permutation.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / compute / algorithm / next_permutation.hpp
index 061ea1efe9bcd25a127e745031eea730c5365414..1816174ec34eb2fb52eff51ab00fb75539414d44 100644 (file)
 
 #include <iterator>
 
+#include <boost/static_assert.hpp>
+
 #include <boost/compute/system.hpp>
 #include <boost/compute/command_queue.hpp>
 #include <boost/compute/container/detail/scalar.hpp>
 #include <boost/compute/algorithm/reverse.hpp>
+#include <boost/compute/type_traits/is_device_iterator.hpp>
 
 namespace boost {
 namespace compute {
@@ -137,6 +140,7 @@ inline bool next_permutation(InputIterator first,
                              InputIterator last,
                              command_queue &queue = system::default_queue())
 {
+    BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
     typedef typename std::iterator_traits<InputIterator>::value_type value_type;
 
     if(first == last) return false;