eb25.C

Robert Lipe robertl@dgii.com
Sun May 31 21:07:00 GMT 1998


Martin von Loewis wrote:
> priority_queue is missing because <queue> is not included.

Committed.   Thank you.

RJL


> 
> 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;
>   }

-- 
Robert Lipe       http://www.dgii.com/people/robertl       robertl@dgii.com
              (WEB ADDRESS MAY BE TEMPORARILY UNAVAILABLE)





More information about the Gcc-patches mailing list