Opened 15 years ago

Closed 13 years ago

#1152 closed Bugs (fixed)

rle_example fails

Reported by: Vladimir Prus Owned by: Pavol Droba
Milestone: To Be Determined Component: string_algo
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description

The string_algo's rle_example fails to compile for me on Linux, gcc 4.1.2:

../../../../boost/algorithm/string/detail/find_format_all.hpp: In function ‘InputT boost::algorithm::detail::find_format_all_copy_impl(const InputT&, FinderT, FormatterT, const FindResultT&) [with InputT = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, FinderT = find_compressF, FormatterT = format_compressF<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, FindResultT = boost::iterator_range<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >]’:
../../../../boost/algorithm/string/find_format.hpp:218:   instantiated from ‘SequenceT boost::algorithm::find_format_all_copy(const SequenceT&, FinderT, FormatterT) [with SequenceT = std::string, FinderT = find_compressF, FormatterT = format_compressF<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]’
rle_example.cpp:210:   instantiated from here
../../../../boost/algorithm/string/detail/find_format_all.hpp:115: error: no matching function for call to ‘find_format_all_copy_impl2(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, find_compressF&, format_compressF<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, const boost::iterator_range<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)’
../../../../boost/algorithm/string/detail/find_format_all.hpp: In function ‘InputT boost::algorithm::detail::find_format_all_copy_impl(const InputT&, FinderT, FormatterT, const FindResultT&) [with InputT = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, FinderT = find_decompressF, FormatterT = format_decompressF<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, FindResultT = boost::iterator_range<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >]’:
../../../../boost/algorithm/string/find_format.hpp:218:   instantiated from ‘SequenceT boost::algorithm::find_format_all_copy(const SequenceT&, FinderT, FormatterT) [with SequenceT = std::string, FinderT = find_decompressF, FormatterT = format_decompressF<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]’
rle_example.cpp:218:   instantiated from here
../../../../boost/algorithm/string/detail/find_format_all.hpp:115: error: no matching function for call to ‘find_format_all_copy_impl2(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, find_decompressF&, format_decompressF<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, const boost::iterator_range<__gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)’

Attachments (1)

find_format.patch (15.5 KB ) - added by Steven Watanabe 13 years ago.
patch and test case

Download all attachments as: .zip

Change History (2)

by Steven Watanabe, 13 years ago

Attachment: find_format.patch added

patch and test case

comment:1 by anonymous, 13 years ago

Resolution: fixed
Status: newclosed

It compiles now. It appears to have been fixed in [55434]. Merged to release in [56176].

Note: See TracTickets for help on using tickets.