Hello. I have a function that excepts a vector of structs and I want to use an iterator and a cout statement to print the vector to the screen. Visual Studio is giving me a C2679 error and it saying "there is no acceptable conversion". Why is this happening and how does a newbie interpret that error?
1 2 3 4 5 6 7
void print(vector<employee> empIn)
{
vector<employee>::iterator it;
for( it = empIn.begin(); it != empIn.end(); ++it )
cout << *it;
}