From c2472221ef7164695e8959e65b1faae872534f90 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Thu, 15 Feb 2001 06:07:00 +0000 Subject: [PATCH] made the typedef policies_type public in iterator_adaptor and private in filter_iterator_generator [SVN r9205] --- include/boost/iterator_adaptors.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/iterator_adaptors.hpp b/include/boost/iterator_adaptors.hpp index 22c7ade..cd10caa 100644 --- a/include/boost/iterator_adaptors.hpp +++ b/include/boost/iterator_adaptors.hpp @@ -482,6 +482,7 @@ struct iterator_adaptor : typedef Reference reference; typedef Category iterator_category; typedef Base base_type; + typedef Policies policies_type; private: BOOST_STATIC_CONSTANT(bool, is_input_or_output_iter @@ -580,7 +581,6 @@ struct iterator_adaptor : self operator-(Distance x) const { self result(*this); return result -= x; } private: - typedef Policies policies_type; compressed_pair m_iter_p; public: // implementation details (too many compilers have trouble when these are private). @@ -1015,8 +1015,8 @@ class filter_iterator_generator { #ifndef BOOST_MSVC // I don't have any idea why this occurs, but it doesn't seem to hurt too badly. BOOST_STATIC_ASSERT(!is_bidirectional); #endif - public: typedef filter_iterator_policies policies_type; + public: typedef iterator_adaptor type; };