This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: eb25.C
- To: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>, egcs-patches at cygnus dot com
- Subject: Re: eb25.C
- From: Robert Lipe <robertl at dgii dot com>
- Date: Sun, 31 May 1998 22:52:16 -0500
- References: <199805301240.OAA29791@mira.isdn.cs.tu-berlin.de>
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)