I've declared a struct outside the main() function (with a few operator overloads for it).
I made a vector of the structs in the main() and then passed it by reference to another function.(node is the struct)
void openInsert(vector<node> &vec, node node)//insert nodes in least to greatest
I need to iterate over the the vector. I was trying to use a iterator but I'm getting an error when declaring it. (im using "using namespace std;")
vector<node>::iterator itr = vec.begin();
the error is :
no suitable user-defined conversion from
"std::_Vector_iterator<std::_Vector_val<std::_Simple_types<node>>>" to
"std::_Vector_iterator<std::_Vector_val<std::_Simple_types<<error-type>>>>" exists
also :
parameter "node" is not a type name