error: 'comp' was not declared in this scope

John Love-Jensen eljay@adobe.com
Wed Feb 14 15:02:00 GMT 2007


Hi Divy,

You might want to try adding this near the beginning of your Queue template
class:

protected:
  using std::priority_queue< T, std::vector<T>, PLess<T> >::c;
  using std::priority_queue< T, std::vector<T>, PLess<T> >::comp;

HTH,
--Eljay



More information about the Gcc-help mailing list