update boost on linux
This commit is contained in:
@@ -13,10 +13,13 @@
|
||||
|
||||
#include <iterator>
|
||||
|
||||
#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/algorithm/reverse.hpp>
|
||||
#include <boost/compute/type_traits/is_device_iterator.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace compute {
|
||||
@@ -51,6 +54,8 @@ struct reverse_copy_kernel : public meta_kernel
|
||||
/// Copies the elements in the range [\p first, \p last) in reversed
|
||||
/// order to the range beginning at \p result.
|
||||
///
|
||||
/// Space complexity: \Omega(1)
|
||||
///
|
||||
/// \see reverse()
|
||||
template<class InputIterator, class OutputIterator>
|
||||
inline OutputIterator
|
||||
@@ -59,6 +64,9 @@ reverse_copy(InputIterator first,
|
||||
OutputIterator result,
|
||||
command_queue &queue = system::default_queue())
|
||||
{
|
||||
BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
|
||||
BOOST_STATIC_ASSERT(is_device_iterator<OutputIterator>::value);
|
||||
|
||||
typedef typename std::iterator_traits<OutputIterator>::difference_type difference_type;
|
||||
|
||||
difference_type count = std::distance(first, last);
|
||||
|
||||
Reference in New Issue
Block a user