This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error: 'comp' was not declared in this scope


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]