title: "no matching function" error on boost::regex_search , am I doing it wrong?
body: <p>code:</p>
  
  <pre><code>#include &lt;string&gt;
  #include &lt;boost/regex.hpp&gt;
  int main() {
    boost::smatch what;
    boost::regex regex("some +", boost::regex::icase);
    std::string mystring = "some     string";
    bool search_result = boost::regex_search(mystring.begin(),mystring.end(), what, regex);
  }
  </code></pre>
  
  <p>the error message is lengty, only first lines here:</p>
  
  <pre><code>&lt;stdin&gt;: In function 'int main()':
  &lt;stdin&gt;:7:88: error: no matching function for call to 'regex_search(std::basic_string&lt;char&gt;::iterator, std::basic_string&lt;char&gt;::iterator, boost::smatch&amp;, boost::regex&amp;)'
  &lt;stdin&gt;:7:88: note: candidates are:
  In file included from d:\boost/boost/regex/v4/regex.hpp:148:0,
                   from d:\boost/boost/regex.hpp:31,
                   from &lt;stdin&gt;:2:
  </code></pre>