Ticket #1427: transform_iterator.patch

File transform_iterator.patch, 770 bytes (added by mimomorin@…, 12 years ago)

A patch against trunk (boost/iterator/transform_iterator.hpp)

  • transform_iterator.hpp

     
    4242    struct transform_iterator_base
    4343    {
    4444     private:
    45         typedef typename std::iterator_traits<Iterator>::reference Arg1;
    46 
    4745        // By default, dereferencing the iterator yields the same as
    4846        // the function.
    4947        typedef typename ia_dflt_help<
    5048            Reference
    51           , result_of<UnaryFunc(typename std::iterator_traits<Iterator>::value_type)>
     49          , result_of<UnaryFunc(typename std::iterator_traits<Iterator>::reference)>
    5250        >::type reference;
    5351
    5452        // To get the default for Value: remove any reference on the