title: no instance of overloaded function
body: <p>trying to do a project for class, but keep getting the error: no instance of overloaded function matches argument list relating to the implementation of the rows vector. the area that is specifically highlighted is the . operator before push_back and insert.</p>
  
  <pre><code>void holdLines(ifstream in, vector&lt;string&gt; rows) {
    string line;
    string prevLine;
    vector&lt;string&gt; rows;
    int lineNumber = 0;
    int vectorNumber = 0;
  
    while(true) {
      getline(in, line);
      if(in.fail()) {
        break;
      }
      lineNumber++;
      vectorNumber = lineNumber - 1;
      rows.push_back(lineNumber);
      rows.insert(prevLine, line);
    }
  }
  </code></pre>