title: How to find string that contain dash in a string
body: <p>I try to get the position of the string "-a" with this code</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  int main(void)
  {
  string command("test –a string");
  size_t pos = command.find("-a");
  cout &lt;&lt; "position found = " &lt;&lt; pos &lt;&lt; endl;
  }
  </code></pre>
  
  <p>this produce this output:</p>
  
  <pre><code>position found = 4294967295
  </code></pre>
  
  <p>If I remove the '-' it's work as expected. 8 is returned. </p>