Ticket #1427: transform_iterator.patch
File transform_iterator.patch, 770 bytes (added by , 12 years ago) |
---|
-
transform_iterator.hpp
42 42 struct transform_iterator_base 43 43 { 44 44 private: 45 typedef typename std::iterator_traits<Iterator>::reference Arg1;46 47 45 // By default, dereferencing the iterator yields the same as 48 46 // the function. 49 47 typedef typename ia_dflt_help< 50 48 Reference 51 , result_of<UnaryFunc(typename std::iterator_traits<Iterator>:: value_type)>49 , result_of<UnaryFunc(typename std::iterator_traits<Iterator>::reference)> 52 50 >::type reference; 53 51 54 52 // To get the default for Value: remove any reference on the