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]

Re: eb25.C


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)




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