title: No matching constructor for initialisation of 'ifstream'
body: <p>I am geting an an error in the following code it worked fine in visual studio but once i have moved it over to Xcode that uses gcc to compile get this error No matching constructor for initialisation of 'ifstream' i have looked at adding this as a reference rather than a copy as suggested on this site but it still came up with the error. </p>
  
  <pre><code>void getAndSetTextData::GetBannedList(string fileName)
  {
      bannedWordCount = 0;
      ifstream inFile(fileName);
      while(inFile &gt;&gt; currentWord)
      {
          bannedWords.push_back(currentWord);
          bannedWords[bannedWordCount++] = currentWord;
      }
      inFile.close();
  }  
  </code></pre>
  
  <p>Any help would be appreciated.</p>