title: error: no matching function for call to 'copy'
body: <pre><code>wxString P::getParentPath(const wxString &amp;ss){
      wxString dst;
      for(wxString::const_iterator it=ss.end();it!=ss.begin();it--)
          if(*it=='\\'){
              std::copy(ss.begin(),ss.end()-it,dst.begin());
              break;
          }
      return s;
  }
  
  
  error: no matching function for call to 'copy(wxString::const_iterator, wxString::const_iterator::difference_type, wxString::iterator)'|
  </code></pre>
  
  <p>I'm trying to copy a part of string to another string, I get this error while trying.
  Thanks for your help.</p>