updated boost on windows
This commit is contained in:
@@ -11,10 +11,13 @@
|
||||
#ifndef BOOST_COMPUTE_ALGORITHM_IOTA_HPP
|
||||
#define BOOST_COMPUTE_ALGORITHM_IOTA_HPP
|
||||
|
||||
#include <boost/static_assert.hpp>
|
||||
|
||||
#include <boost/compute/system.hpp>
|
||||
#include <boost/compute/command_queue.hpp>
|
||||
#include <boost/compute/algorithm/copy.hpp>
|
||||
#include <boost/compute/iterator/counting_iterator.hpp>
|
||||
#include <boost/compute/type_traits/is_device_iterator.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace compute {
|
||||
@@ -26,12 +29,15 @@ namespace compute {
|
||||
/// \snippet test/test_iota.cpp iota
|
||||
///
|
||||
/// Will fill \c vec with the values (\c 0, \c 1, \c 2, \c ...).
|
||||
///
|
||||
/// Space complexity: \Omega(1)
|
||||
template<class BufferIterator, class T>
|
||||
inline void iota(BufferIterator first,
|
||||
BufferIterator last,
|
||||
const T &value,
|
||||
command_queue &queue = system::default_queue())
|
||||
{
|
||||
BOOST_STATIC_ASSERT(is_device_iterator<BufferIterator>::value);
|
||||
T count = static_cast<T>(detail::iterator_range_size(first, last));
|
||||
|
||||
copy(
|
||||
|
||||
Reference in New Issue
Block a user