|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80275 - trunk/boost/proto/functional/range
From: eric_at_[hidden]
Date: 2012-08-27 21:55:38
Author: eric_niebler
Date: 2012-08-27 21:55:37 EDT (Mon, 27 Aug 2012)
New Revision: 80275
URL: http://svn.boost.org/trac/boost/changeset/80275
Log:
fix oops in range function objects
Text files modified:
trunk/boost/proto/functional/range/begin.hpp | 2 +-
trunk/boost/proto/functional/range/end.hpp | 2 +-
trunk/boost/proto/functional/range/rbegin.hpp | 2 +-
trunk/boost/proto/functional/range/rend.hpp | 8 ++++----
4 files changed, 7 insertions(+), 7 deletions(-)
Modified: trunk/boost/proto/functional/range/begin.hpp
==============================================================================
--- trunk/boost/proto/functional/range/begin.hpp (original)
+++ trunk/boost/proto/functional/range/begin.hpp 2012-08-27 21:55:37 EDT (Mon, 27 Aug 2012)
@@ -25,7 +25,7 @@
template<typename This, typename Rng>
struct result<This(Rng)>
- : boost::range_iterator<Rng>
+ : boost::range_iterator<Rng const>
{};
template<typename This, typename Rng>
Modified: trunk/boost/proto/functional/range/end.hpp
==============================================================================
--- trunk/boost/proto/functional/range/end.hpp (original)
+++ trunk/boost/proto/functional/range/end.hpp 2012-08-27 21:55:37 EDT (Mon, 27 Aug 2012)
@@ -25,7 +25,7 @@
template<typename This, typename Rng>
struct result<This(Rng)>
- : boost::range_iterator<Rng>
+ : boost::range_iterator<Rng const>
{};
template<typename This, typename Rng>
Modified: trunk/boost/proto/functional/range/rbegin.hpp
==============================================================================
--- trunk/boost/proto/functional/range/rbegin.hpp (original)
+++ trunk/boost/proto/functional/range/rbegin.hpp 2012-08-27 21:55:37 EDT (Mon, 27 Aug 2012)
@@ -25,7 +25,7 @@
template<typename This, typename Rng>
struct result<This(Rng)>
- : boost::range_reverse_iterator<Rng>
+ : boost::range_reverse_iterator<Rng const>
{};
template<typename This, typename Rng>
Modified: trunk/boost/proto/functional/range/rend.hpp
==============================================================================
--- trunk/boost/proto/functional/range/rend.hpp (original)
+++ trunk/boost/proto/functional/range/rend.hpp 2012-08-27 21:55:37 EDT (Mon, 27 Aug 2012)
@@ -25,22 +25,22 @@
template<typename This, typename Rng>
struct result<This(Rng)>
- : boost::range_iterator<Rng>
+ : boost::range_reverse_iterator<Rng const>
{};
template<typename This, typename Rng>
struct result<This(Rng &)>
- : boost::range_iterator<Rng>
+ : boost::range_reverse_iterator<Rng>
{};
template<typename Rng>
- typename boost::range_iterator<Rng>::type operator()(Rng &rng) const
+ typename boost::range_reverse_iterator<Rng>::type operator()(Rng &rng) const
{
return boost::rend(rng);
}
template<typename Rng>
- typename boost::range_iterator<Rng const>::type operator()(Rng const &rng) const
+ typename boost::range_reverse_iterator<Rng const>::type operator()(Rng const &rng) const
{
return boost::rend(rng);
}
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