From d8fda23564317ec702ac9051824bf7362ac7be20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 10 Apr 2012 20:04:35 +0000 Subject: [PATCH] Make ordered insertion tags more iterator_tag-like. [SVN r77894] --- include/boost/container/container_fwd.hpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/include/boost/container/container_fwd.hpp b/include/boost/container/container_fwd.hpp index affea83..cf8d6e6 100644 --- a/include/boost/container/container_fwd.hpp +++ b/include/boost/container/container_fwd.hpp @@ -132,26 +132,22 @@ class basic_string; //! 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