Opened 10 years ago
Closed 10 years ago
#7104 closed Bugs (fixed)
[algorithm] compile error boyer_morre_search
| Reported by: | Owned by: | Marshall Clow | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | algorithm |
| Version: | Boost 1.50.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
compilation error with Range version boost::algorithm::boyer_moore_search. follow code:
#include <iostream>
#include <string>
#include <boost/algorithm/searching/boyer_moore.hpp>
int main()
{
std::string text =
"the stick, and made believe to worry it: then Alice dodged behind a";
std::string pattern = "behind";
// BM法で文字列検索
decltype(text)::const_iterator it =
boost::algorithm::boyer_moore_search(text, pattern); // error!
if (it != text.end()) std::cout << "found" << std::endl;
else std::cout << "not found" << std::endl;
}
Please see attached patch.
Attachments (1)
Change History (3)
by , 10 years ago
| Attachment: | boyer_moore.patch added |
|---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

fixed iterator type