diff --git a/projection_iterator.htm b/projection_iterator.htm index 5e02e21..9b60c0b 100644 --- a/projection_iterator.htm +++ b/projection_iterator.htm @@ -47,7 +47,13 @@ namespace boost { template <class AdaptableUnaryFunction, class BaseIterator> typename projection_iterator_generator<AdaptableUnaryFunction, BaseIterator>::type - make_projection_iterator(BaseIterator base) + make_projection_iterator(BaseIterator base, + const AdaptableUnaryFunction& p = AdaptableUnaryFunction()) + + template <class AdaptableUnaryFunction, class ConstBaseIterator> + typename projection_iterator_generator<AdaptableUnaryFunction, ConstBaseIterator>::type + make_const_projection_iterator(ConstBaseIterator base, + const AdaptableUnaryFunction& p = AdaptableUnaryFunction()) } @@ -327,15 +333,15 @@ save the user the trouble of explicitly writing out the iterator types.
-  template <class AdaptableUnaryFunction, class BaseIterator>
-  typename projection_iterator_generator<AdaptableUnaryFunction, BaseIterator>::type
-  make_projection_iterator(BaseIterator base,
-                           const AdaptableUnaryFunction& p = AdaptableUnaryFunction())  
+template <class AdaptableUnaryFunction, class BaseIterator>
+typename projection_iterator_generator<AdaptableUnaryFunction, BaseIterator>::type
+make_projection_iterator(BaseIterator base,
+			 const AdaptableUnaryFunction& p = AdaptableUnaryFunction())  
 
-  template <class AdaptableUnaryFunction, class ConstBaseIterator>
-  typename projection_iterator_generator<AdaptableUnaryFunction, ConstBaseIterator>::type
-  make_const_projection_iterator(ConstBaseIterator base,
-                                 const AdaptableUnaryFunction& p = AdaptableUnaryFunction())  
+template <class AdaptableUnaryFunction, class ConstBaseIterator>
+typename projection_iterator_generator<AdaptableUnaryFunction, ConstBaseIterator>::type
+make_const_projection_iterator(ConstBaseIterator base,
+			       const AdaptableUnaryFunction& p = AdaptableUnaryFunction())  
 
@@ -343,7 +349,7 @@ types. In this part of the example, we again print out the names of the personnel, but this time we use the -make_projection_iterator() function to save some typing. +make_const_projection_iterator() function to save some typing.
   // continuing from the last example...