[Boost-bugs] [Boost C++ Libraries] #7104: [algorithm] compile error boyer_morre_search

Subject: [Boost-bugs] [Boost C++ Libraries] #7104: [algorithm] compile error boyer_morre_search
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-09 07:52:12


#7104: [algorithm] compile error boyer_morre_search
-------------------------------------------------------+--------------------
 Reporter: Akira Takahashi <faithandbrave@…> | Owner: marshall
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: algorithm
  Version: Boost 1.50.0 | Severity: Problem
 Keywords: |
-------------------------------------------------------+--------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7104>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC