Boost C++ Libraries: Ticket #7104: [algorithm] compile error boyer_morre_search https://svn.boost.org/trac10/ticket/7104 <p> compilation error with Range version boost::algorithm::boyer_moore_search. follow code: </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;string&gt; #include &lt;boost/algorithm/searching/boyer_moore.hpp&gt; 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 &lt;&lt; "found" &lt;&lt; std::endl; else std::cout &lt;&lt; "not found" &lt;&lt; std::endl; } </pre><p> Please see attached patch. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7104 Trac 1.4.3 Akira Takahashi <faithandbrave@…> Mon, 09 Jul 2012 07:52:55 GMT attachment set https://svn.boost.org/trac10/ticket/7104 https://svn.boost.org/trac10/ticket/7104 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boyer_moore.patch</span> </li> </ul> <p> fixed iterator type </p> Ticket Marshall Clow Mon, 09 Jul 2012 14:27:02 GMT <link>https://svn.boost.org/trac10/ticket/7104#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7104#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79380" title="Fixed range-based versions of Boyer-Moore; Added range-based versions ...">[79380]</a>) Fixed range-based versions of Boyer-Moore; Added range-based versions of Boyer-Moore-Horspool and Knuth-Pratt-Morris; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7104" title="#7104: Bugs: [algorithm] compile error boyer_morre_search (closed: fixed)">#7104</a>; will close when merged to release. Thanks to Akira Takahashi for the bug report! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sun, 15 Jul 2012 16:28:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7104#comment:2 https://svn.boost.org/trac10/ticket/7104#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79538" title="Merge Boost.Algorithm changes to release; Fixes #7104">[79538]</a>) Merge Boost.Algorithm changes to release; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7104" title="#7104: Bugs: [algorithm] compile error boyer_morre_search (closed: fixed)">#7104</a> </p> Ticket