This is the mail archive of the gcc-patches@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]

No Subject


priority_queue is missing because <queue> is not included.

Index: eb25.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb25.C,v
retrieving revision 1.1
diff -c -p -r1.1 eb25.C
*** eb25.C	1998/05/27 23:00:35	1.1
--- eb25.C	1998/05/30 12:33:57
***************
*** 1,9 ****
  #include <stack>
  #include <vector>
  
  
  int main()
  {
!   priority_queue< int, vector<int>, greater<int> > pq;
    return 0;
  }
--- 1,11 ----
+ //Build don't link:
+ //Neither stack nor vector provide priority_queue, use <queue> instead
  #include <stack>
  #include <vector>
  
  
  int main()
  {
!   priority_queue< int, vector<int>, greater<int> > pq; // ERROR -
    return 0;
  }


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