title: C++ CSV line with commas and strings within double quotes
body: <p>I'm reading a CSV file in C++ and the row format is as such:</p>
  
  <p>"Primary, Secondary, Third", "Primary", , "Secondary", 18, 4, 0, 0, 0</p>
  
  <p>(notice the empty value)</p>
  
  <p>When I do:</p>
  
  <pre><code>while (std::getline(ss, csvElement, ',')) {
     csvColumn.push_back(csvElement);
  }
  </code></pre>
  
  <p>This splits up the first string into pieces which isn't correct. </p>
  
  <p>How do I preserve the string when iterating? I tried to do a combination of the above and while also grabbing the lines separated by double quote but I got wild results. </p>