Ticket #7346: find_format.diff

File find_format.diff, 2.0 KB (added by Yusuke Ichinohe <yusuke.ichinohe@…>, 10 years ago)

Fix for this problem

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

     
    118118
    119119                InputT Output;
    120120                // Copy the beginning of the sequence
    121                 insert( Output, ::boost::end(Output), ::boost::begin(Input), M.begin() );
     121                ::boost::algorithm::detail::insert( Output, ::boost::end(Output), ::boost::begin(Input), M.begin() );
    122122                // Copy formated result
    123                 insert( Output, ::boost::end(Output), M.format_result() );
     123                ::boost::algorithm::detail::insert( Output, ::boost::end(Output), M.format_result() );
    124124                // Copy the rest of the sequence
    125                 insert( Output, ::boost::end(Output), M.end(), ::boost::end(Input) );
     125                ::boost::algorithm::detail::insert( Output, ::boost::end(Output), M.end(), ::boost::end(Input) );
    126126
    127127                return Output;
    128128            }
  • boost/algorithm/string/detail/find_format_all.hpp

     
    134134                while( M )
    135135                {
    136136                    // Copy the beginning of the sequence
    137                     insert( Output, ::boost::end(Output), LastMatch, M.begin() );
     137                    ::boost::algorithm::detail::insert( Output, ::boost::end(Output), LastMatch, M.begin() );
    138138                    // Copy formated result
    139                     insert( Output, ::boost::end(Output), M.format_result() );
     139                    ::boost::algorithm::detail::insert( Output, ::boost::end(Output), M.format_result() );
    140140
    141141                    // Proceed to the next match
    142142                    LastMatch=M.end();