title: Reading a csv into a unordered_map in C++
body: <p>I'm trying to read a csv file and store it in a hashmap in C++. Here's my code.</p>
  
  <pre><code> void processList(std::string path, std::unordered_map&lt;std::string, int&gt; rooms){
  
              std::ifstream openFile(path);
              std::string key;
              int value;
              std::getline(openFile, key, ','); //to overwrite the value of the first line
              while(true)
              {
                  if (!std::getline(openFile, key, ',')) break;
  
                  std::getline(openFile, value, '\n');
                  rooms[key] = value;
                  std::cout &lt;&lt; key &lt;&lt; ":" &lt;&lt; value &lt;&lt; std::endl;
              }
      }
  </code></pre>
  
  <p>I keep getting the following error</p>
  
  <pre><code>error: no matching function for call to 'getline'
              std::getline(openFile, value, '\n');
  </code></pre>
  
  <p>What am I doing wrong.</p>