Fixed tests

[SVN r46599]
This commit is contained in:
Marshall Clow
2008-06-22 02:11:09 +00:00
parent a3c3cf4933
commit 3aea2b6a78
2 changed files with 34 additions and 31 deletions

View File

@ -12,6 +12,7 @@
#define BOOST_ALGORITHM_SEQUENCE_COPY_HPP
#include <boost/range.hpp> // For boost::begin and boost::end
#include <iterator> // for std::iterator_traits<>
/// \file copy.hpp
/// \brief Boost implementation of various STL-type copying algorithms
@ -199,7 +200,7 @@ template<typename I,typename O>
// template <typename I, typename Size, typename O>
// O copy_n ( I first, Size count, O res )
template <typename I, typename O>
O copy_n ( I first, typename iterator_traits<I>::difference_type count, O res )
O copy_n ( I first, typename std::iterator_traits<I>::difference_type count, O res )
{
while ( count-- > 0 )
*res++ = *first++;