|
|
error C2679: binary '<<': no operator found which takes a right-hand operand of type 'std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>' (or there is no acceptable conversion) |
std::_Vector_iterator<std::_Vector_val<std::_Simple_types<_Ty>>>
which is not a basic type nor does it overload the << operator.std::cout << "\nThe value 3 is at position " << std::distance(vec.begin(), pos) << " in the original vector\n";