Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77894 - trunk/boost/container
From: igaztanaga_at_[hidden]
Date: 2012-04-10 16:04:36


Author: igaztanaga
Date: 2012-04-10 16:04:35 EDT (Tue, 10 Apr 2012)
New Revision: 77894
URL: http://svn.boost.org/trac/boost/changeset/77894

Log:
Make ordered insertion tags more iterator_tag-like.
Text files modified:
   trunk/boost/container/container_fwd.hpp | 18 +++++++-----------
   1 files changed, 7 insertions(+), 11 deletions(-)

Modified: trunk/boost/container/container_fwd.hpp
==============================================================================
--- trunk/boost/container/container_fwd.hpp (original)
+++ trunk/boost/container/container_fwd.hpp 2012-04-10 16:04:35 EDT (Tue, 10 Apr 2012)
@@ -132,26 +132,22 @@
 
 //! Type used to tag that the input range is
 //! guaranteed to be ordered
-struct ordered_range_impl_t {};
+struct ordered_range_t
+{};
 
 //! Type used to tag that the input range is
 //! guaranteed to be ordered and unique
-struct ordered_unique_range_impl_t{};
-
-/// @cond
-
-typedef ordered_range_impl_t * ordered_range_t;
-typedef ordered_unique_range_impl_t *ordered_unique_range_t;
-
-/// @endcond
+struct ordered_unique_range_t
+ : public ordered_range_t
+{};
 
 //! Value used to tag that the input range is
 //! guaranteed to be ordered
-static const ordered_range_t ordered_range = 0;
+static const ordered_range_t ordered_range = ordered_range_t();
 
 //! Value used to tag that the input range is
 //! guaranteed to be ordered and unique
-static const ordered_unique_range_t ordered_unique_range = 0;
+static const ordered_unique_range_t ordered_unique_range = ordered_unique_range_t();
 
 /// @cond
 


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