jeudi 17 août 2017

binary '>>': no operator found which takes a right-hand operand of type 'std::pair

I am recieving this error where I have

std:map<std:string,std::string> data{stdistream_iterator<std::pair<int,int>>(in),std::istream_iterator<std::pair<int,int>> ()};

is it that Visual Studio is seeing >> as a binary operator rather than the closing brackets for iterator and pair? How can this be fixed?

Aucun commentaire:

Enregistrer un commentaire