Using std::copy - error C2679: can't find correct binary '=' operator
问题 I am trying to use a solution from this question: How do I iterate over cin line by line in C++? The error message c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(2144): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const Line' (or there is no acceptable conversion) (and a bunch of template trace data after this) I am using Visual C++ 2010 Express. The code #include<string> #include<iostream> #include<fstream> #include<vector>