expected token How can I fix that problem?

0

When I add this to my code:

while (std::getline(file, str, '\n'))
{
   istringstream iss(str);
   vector<string> line;
   copy(istream_iterator<string>(iss), istream_iterator<string>(), back_inserter(line));
   counter = 0;

In the part of

copy(istream_iterator<string>(iss), istream_iterator<string>(),
back_inserter(line));

I get the error:

  

error: expected primary-expression before ')' token

How can I solve this problem?

    
asked by Manuel Sumuano Gamez 27.05.2017 в 06:30
source

0 answers