diff --git a/iterator_adaptors.htm b/iterator_adaptors.htm index 8aa9e63..7dbd325 100644 --- a/iterator_adaptors.htm +++ b/iterator_adaptors.htm @@ -170,7 +170,8 @@ struct iterator_adaptor;
[5] + The value_type of an iterator may not be + an abstract base class, however many common uses of iterators + never need the value_type, only the reference type. + If you wish to create such an iterator adaptor, use a dummy + type such as char for the Value parameter, + and use a reference to your abstract base class for + the Reference parameter. Note that such an iterator + does not fulfill the C++ standards requirements for a + + Forward Iterator, so you will need to use a less restrictive + iterator category such as std::input_iterator_tag. +
Revised