|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-04-14 14:10:05
Author: danieljames
Date: 2008-04-14 14:10:05 EDT (Mon, 14 Apr 2008)
New Revision: 44423
URL: http://svn.boost.org/trac/boost/changeset/44423
Log:
Use boost's iterator traits library as well.
Text files modified:
sandbox/move/boost/move.hpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: sandbox/move/boost/move.hpp
==============================================================================
--- sandbox/move/boost/move.hpp (original)
+++ sandbox/move/boost/move.hpp 2008-04-14 14:10:05 EDT (Mon, 14 Apr 2008)
@@ -15,6 +15,7 @@
#include <memory>
#include <boost/iterator.hpp>
+#include <boost/iterator/iterator_traits.hpp>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/and.hpp>
@@ -360,7 +361,7 @@
template <typename I, // I models InputIterator
typename F> // F models ForwardIterator
F uninitialized_move(I f, I l, F r,
- typename move_sink<typename std::iterator_traits<I>::value_type>::type = 0)
+ typename move_sink<typename boost::iterator_value<I>::type>::type = 0)
{
while (f != l) {
boost::move_construct(&*r, *f);
@@ -378,7 +379,7 @@
template <typename I, // I models InputIterator
typename F> // F models ForwardIterator
F uninitialized_move(I f, I l, F r,
- typename copy_sink<typename std::iterator_traits<I>::value_type>::type = 0)
+ typename copy_sink<typename boost::iterator_value<I>::type>::type = 0)
{
return std::uninitialized_copy(f, l, r);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk