title: make_pair(string, class): error: expected primary-expression before â)â token
body: <blockquote>
    <p>error: expected primary-expression before â)â token</p>
  </blockquote>
  
  <p>I'm not entirely sure what's going on here, since my friends also working on this project can't seem to tell what's wrong. Any help on this error would be appreciated. The line that the error is referring to has a comment on it pointing it out. I'm trying to insert a pair into a map by the code below.</p>
  
  <p><code>theCandidates</code> is a <code>map&lt;string, class&gt;</code>, and in this case, that class is called Candidate.</p>
  
  <pre><code>void TallyVotes::initialize(Scanner&amp; inStream)
      {   
          numberOfLosers = 0;
          numberOfVotes = boost::lexical_cast&lt;int&gt;(inStream.next());
          numberOfCandidates = boost::lexical_cast&lt;int&gt;(inStream.next());
          for(int i = 0; i &lt; numberOfVotes ; i++)
          {
              for(int j = 0; j &lt; numberOfCandidates ; i++)
              {
                  theVotes[i][j] = inStream.next();
                  cand = theVotes[i][j];
                  if(i == 0)
                  {   
                      theCandidates.insert(make_pair(cand, Candidate));//ERROR ON THIS LINE       
                  }
              }
          }
      } // void TallyVotes::initialize(Scanner&amp; inStream)
  </code></pre>