From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10565 invoked by alias); 25 Oct 2002 15:24:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 10469 invoked from network); 25 Oct 2002 15:24:11 -0000 Received: from unknown (HELO smtp3.cern.ch) (137.138.131.164) by sources.redhat.com with SMTP; 25 Oct 2002 15:24:11 -0000 Received: from lxplus001.cern.ch (IDENT:root@lxplus001.cern.ch [137.138.161.126]) by smtp3.cern.ch (8.12.1/8.12.1) with ESMTP id g9PFO9hE020654 for ; Fri, 25 Oct 2002 17:24:09 +0200 (MET DST) Received: from localhost (graboso@localhost) by lxplus001.cern.ch (8.9.3/8.9.3) with SMTP id RAA32074 for ; Fri, 25 Oct 2002 17:24:09 +0200 X-Authentication-Warning: lxplus001.cern.ch: graboso owned process doing -bs Date: Fri, 25 Oct 2002 08:24:00 -0000 From: Alberto Garcia Raboso X-Sender: graboso@lxplus001.cern.ch To: gcc-help@gcc.gnu.org Subject: STL iterators in gcc 3.2 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-10/txt/msg00318.txt.bz2 I have just changed from Debian GNU/Linux to Gentoo GNU/Linux, which comes with gcc 3.2. I have tried to compile some programs that worked fine under gcc 2.95.x and 3.1, but now I got some problems with them: 1.- Whereas I didn't need it before, now I have to use the "using namespace std" directive if I want to use cout, cin,... and all this stuff. Why the change? 2.- This is more serious. In my programs I use a lot of STL vectors, and so, iterators too. When I had a method with a pointer argument, I passed a random iterator to it. It worked fine with previous versions of gcc, but not with 3.2. Is there any way to get it work or do I have to come back to an older version? Thanks in advance, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Alberto Garcia Raboso CERN / EP CH-1211 Geneva 23, Switzerland Office 40-2B-19 (+41 22 76 71626) E-Mail: Alberto.Garcia.Raboso@cern.ch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Well, farewell, my hobbits! You should come safe to your own homes now, and I shall not be kept awake for fear of your peril. We will send word when we may, and some of us may yet meet at times; but I fear that we shall not all be gathered together ever again. The return of the King. J.R.R. Tolkien ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~