Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61712 - sandbox/geometry/boost/geometry/util
From: barend.gehrels_at_[hidden]
Date: 2010-04-30 12:42:07


Author: barendgehrels
Date: 2010-04-30 12:42:07 EDT (Fri, 30 Apr 2010)
New Revision: 61712
URL: http://svn.boost.org/trac/boost/changeset/61712

Log:
Update for gcc (4) - first solutions were not accepted - might be solved using this-> but now solved differently
Text files modified:
   sandbox/geometry/boost/geometry/util/reversible_view.hpp | 28 ++++++----------------------
   1 files changed, 6 insertions(+), 22 deletions(-)

Modified: sandbox/geometry/boost/geometry/util/reversible_view.hpp
==============================================================================
--- sandbox/geometry/boost/geometry/util/reversible_view.hpp (original)
+++ sandbox/geometry/boost/geometry/util/reversible_view.hpp 2010-04-30 12:42:07 EDT (Fri, 30 Apr 2010)
@@ -19,24 +19,6 @@
 namespace boost { namespace geometry
 {
 
-
-#ifndef DOXYGEN_NO_DETAIL
-namespace detail
-{
-
-template <typename Range>
-struct reversible_base_view
-{
- Range& m_range;
- reversible_base_view(Range& r)
- : m_range(r)
- {}
-};
-
-}
-#endif
-
-
 enum iterate_direction { iterate_forward, iterate_reverse };
 
 
@@ -47,10 +29,9 @@
 
 template <typename Range>
 struct reversible_view<Range, iterate_forward>
- : public detail::reversible_base_view<Range>
 {
     reversible_view(Range& r)
- : detail::reversible_base_view<Range>(r)
+ : m_range(r)
     {}
 
     typedef typename boost::range_iterator<Range const>::type const_iterator;
@@ -61,15 +42,16 @@
 
     iterator begin() { return boost::begin(m_range); }
     iterator end() { return boost::end(m_range); }
+private :
+ Range& m_range;
 };
 
 
 template <typename Range>
 struct reversible_view<Range, iterate_reverse>
- : public detail::reversible_base_view<Range>
 {
     reversible_view(Range& r)
- : detail::reversible_base_view<Range>(r)
+ : m_range(r)
     {}
 
     typedef typename boost::range_reverse_iterator<Range const>::type const_iterator;
@@ -80,6 +62,8 @@
 
     iterator begin() { return boost::rbegin(m_range); }
     iterator end() { return boost::rend(m_range); }
+private :
+ Range& m_range;
 };
 
 


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