title: remove double quotes from a string in c++
body: <p>I am stripping off double quotes from a string, but I keep getting this error from the following function. What is the problem here?</p>
  
  <pre><code>void readCSVCell(stringstream&amp; lineStream, string&amp; s) {
      std::getline(lineStream,s,',');
      s.erase(remove( s.begin(), s.end(), '\"' ), s.end());
  }
  </code></pre>
  
  <p>[ERROR]</p>
  
  <blockquote>
    <p>c.cpp: In function <code>void readCSVCell(std::stringstream&amp;, std::string&amp;)</code>:
    <br />c.cpp:11: error: cannot convert <code>__gnu_cxx::__normal_iterator&lt;char*, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;</code> to <code>const char*</code> for argument <code>1</code> to <code>int remove(const char*)</code></p>
  </blockquote>