priority queue question
I'm trying to declare a priority queue of a vector of class treeNode that I defined. When I use this statement:
priority_queue< vector, greater > q;
I get an error about a missing 'value_type'. I haven't worked much with the STL queue before... does anyone have any idea what might be going on? Do I need to define something else in my treeNode class?
priority_queue< vector
I get an error about a missing 'value_type'. I haven't worked much with the STL queue before... does anyone have any idea what might be going on? Do I need to define something else in my treeNode class?
