|
Boost : |
From: Matthias Troyer (troyer_at_[hidden])
Date: 2003-07-14 03:34:35
Dear Boosters,
Since the update of the iterator adaptor library broke boost
multi_array (or at least my CVS version of it), I tried to fix it and
came up with the patch below which makes my codes compile again. Since
I do not have documentation of the new version of the iterator adaptors
(either my CVS checkout is messed up or maybe it is not in the CVS
yet), I am not sure whether this is the correct fix. Can somebody
familiar with the iterator adaptor library check the patch and apply it
if it is correct?
Matthias
cvs diff -u iterator.hpp
Index: iterator.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/multi_array/iterator.hpp,v
retrieving revision 1.4
diff -u -r1.4 iterator.hpp
--- iterator.hpp 30 Jan 2003 16:55:31 -0000 1.4
+++ iterator.hpp 14 Jul 2003 08:30:31 -0000
@@ -21,6 +21,7 @@
#include "boost/multi_array/base.hpp"
#include "boost/multi_array/iterator_adaptors.hpp"
#include "boost/iterator_adaptors.hpp"
+#include "boost/iterator/reverse_iterator.hpp"
#include <cstddef>
#include <iterator>
@@ -150,7 +151,7 @@
typedef typename iterator_gen_helper<T,base_type,NumDims,value_type,
reference_type,tag,difference_type>::type it_type;
public:
- typedef typename boost::reverse_iterator_generator<it_type>::type
type;
+ typedef boost::reverse_iterator<it_type> type;
};
template <typename T, std::size_t NumDims, typename value_type,
@@ -161,7 +162,7 @@
typedef typename iterator_gen_helper<T,base_type,NumDims,value_type,
reference_type,tag,difference_type>::type it_type;
public:
- typedef typename boost::reverse_iterator_generator<it_type>::type
type;
+ typedef boost::reverse_iterator<it_type> type;
};
} // namespace multi_array
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk