Boost logo

Boost-Commit :

From: ockham_at_[hidden]
Date: 2008-07-07 05:42:59


Author: bernhard.reiter
Date: 2008-07-07 05:42:58 EDT (Mon, 07 Jul 2008)
New Revision: 47175
URL: http://svn.boost.org/trac/boost/changeset/47175

Log:
Cosmetic fixes.
Text files modified:
   sandbox/SOC/2006/tree/trunk/boost/tree/cursor_adaptor.hpp | 64 +++++++++------------------------------
   1 files changed, 15 insertions(+), 49 deletions(-)

Modified: sandbox/SOC/2006/tree/trunk/boost/tree/cursor_adaptor.hpp
==============================================================================
--- sandbox/SOC/2006/tree/trunk/boost/tree/cursor_adaptor.hpp (original)
+++ sandbox/SOC/2006/tree/trunk/boost/tree/cursor_adaptor.hpp 2008-07-07 05:42:58 EDT (Mon, 07 Jul 2008)
@@ -39,7 +39,7 @@
   , class Difference = use_default
   , class Size = use_default
>
-class eval_use_default
+class cursor_adaptor_base
 : private iterator_adaptor<Derived
                                                   , Base
                                                   , Value
@@ -54,7 +54,7 @@
                                                 , Difference>
 {
 private:
- eval_use_default() {} // This class is used for typedefs only.
+ cursor_adaptor_base() {} // This class is used for typedefs only.
         
         typedef typename iterator_adaptor<Derived, Base, Value
                                                                 , HorizontalTraversalOrCategory, Reference
@@ -77,6 +77,14 @@
           , boost::tree::cursor_size<Base>
           , mpl::identity<Size>
>::type size_type;
+
+ typedef cursor_facade<Derived
+ , value_type
+ , iterator_category
+ , vertical_traversal
+ , reference
+ , difference_type
+ , size_type> type;
 };
 
 template <
@@ -90,63 +98,21 @@
   , class Size = use_default
>
 class cursor_adaptor
-: public cursor_facade<
- Derived
- , typename eval_use_default<Derived
- , Base
- , Value
- , HorizontalTraversalOrCategory
- , VerticalTraversalOrCategory
- , Reference
- , Difference
- , Size>::value_type
- , typename eval_use_default<Derived
- , Base
- , Value
- , HorizontalTraversalOrCategory
- , VerticalTraversalOrCategory
- , Reference
- , Difference
- , Size>::iterator_category
- , typename eval_use_default<Derived
- , Base
- , Value
- , HorizontalTraversalOrCategory
- , VerticalTraversalOrCategory
- , Reference
- , Difference
- , Size>::vertical_traversal
- , typename eval_use_default<Derived
- , Base
- , Value
- , HorizontalTraversalOrCategory
- , VerticalTraversalOrCategory
- , Reference
- , Difference
- , Size>::reference
- , typename eval_use_default<Derived
- , Base
- , Value
- , HorizontalTraversalOrCategory
- , VerticalTraversalOrCategory
- , Reference
- , Difference
- , Size>::difference_type
- , typename eval_use_default<Derived
- , Base
- , Value
+: public cursor_adaptor_base< Derived
+ , Base
+ , Value
                                                         , HorizontalTraversalOrCategory
                                                         , VerticalTraversalOrCategory
                                                         , Reference
                                                         , Difference
- , Size>::size_type>
+ , Size >::type
 {
 protected:
     typedef cursor_adaptor<Derived, Base, Value, HorizontalTraversalOrCategory,
                                                VerticalTraversalOrCategory, Reference, Difference,
                                                Size> cursor_adaptor_;
         
- typedef eval_use_default<Derived
+ typedef cursor_adaptor_base<Derived
                                                    , Base
                                                    , Value
                                                    , HorizontalTraversalOrCategory


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