title: How to remove all the occurrences of a char in c++ string
body: <p>I am using following:</p>
  
  <pre><code>replace (str1.begin(), str1.end(), 'a' , '')
  </code></pre>
  
  <p>But this is giving compilation error.</p>