From 4772bb099e3d13563d1d55f84458bcf06ec9b9b1 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Mon, 4 Feb 2002 20:25:45 +0000 Subject: [PATCH] added more comments in the default_iterator_policies [SVN r12706] --- include/boost/iterator_adaptors.hpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/boost/iterator_adaptors.hpp b/include/boost/iterator_adaptors.hpp index 3bbbb93..4dec933 100644 --- a/include/boost/iterator_adaptors.hpp +++ b/include/boost/iterator_adaptors.hpp @@ -12,6 +12,8 @@ // // Revision History: +// 01 Feb 2002 Jeremy Siek +// Added more comments in default_iterator_policies. // 08 Jan 2001 David Abrahams // Moved concept checks into a separate class, which makes MSVC // better at dealing with them. @@ -231,9 +233,15 @@ struct RandomAccessIteratorPoliciesConcept // class if you want to customize particular policies. struct default_iterator_policies { - // Some of these members were defined static, but Borland got confused - // and thought they were non-const. Also, Sun C++ does not like static - // function templates. + // Some of the member functions were defined static, but Borland + // got confused and thought they were non-const. Also, Sun C++ + // does not like static function templates. + // + // The reason some members were defined static is because there is + // not state (data members) needed by those members of the + // default_iterator_policies class. If your policies class member + // functions need to access state stored in the policies object, + // then the member functions should not be static (they can't be). template void initialize(Base&)