Ticket #8876: boost-1.54.0-algorithm-unused_typedef.patch

File boost-1.54.0-algorithm-unused_typedef.patch, 2.0 KB (added by Petr Machata <pmachata@…>, 9 years ago)

A fix.

  • boost/algorithm/string/detail/finder.hpp

    diff -urp boost_1_54_0-orig/boost/algorithm/string/detail/finder.hpp boost_1_54_0/boost/algorithm/string/detail/finder.hpp
    old new namespace boost {  
    142142                    ForwardIteratorT End,
    143143                    std::forward_iterator_tag ) const
    144144                {
    145                     typedef ForwardIteratorT input_iterator_type;
    146145                    typedef iterator_range<ForwardIteratorT> result_type;
    147146
    148147                    first_finder_type first_finder(
    namespace boost {  
    263262                    ForwardIteratorT End,
    264263                    unsigned int N) const
    265264                {
    266                     typedef ForwardIteratorT input_iterator_type;
    267265                    typedef iterator_range<ForwardIteratorT> result_type;
    268266
    269267                    // Sanity check
    namespace boost {  
    298296                    ForwardIteratorT End,
    299297                    unsigned int N) const
    300298                {
    301                     typedef ForwardIteratorT input_iterator_type;
    302299                    typedef iterator_range<ForwardIteratorT> result_type;
    303300
    304301                    // Sanity check
    namespace boost {  
    362359                unsigned int N,
    363360                std::random_access_iterator_tag )
    364361            {
    365                 typedef ForwardIteratorT input_iterator_type;
    366362                typedef iterator_range<ForwardIteratorT> result_type;
    367363
    368364                if ( (End<=Begin) || ( static_cast<unsigned int>(End-Begin) < N ) )
    namespace boost {  
    436432                unsigned int N,
    437433                std::random_access_iterator_tag )
    438434            {
    439                 typedef ForwardIteratorT input_iterator_type;
    440435                typedef iterator_range<ForwardIteratorT> result_type;
    441436
    442437                if ( (End<=Begin) || ( static_cast<unsigned int>(End-Begin) < N ) )