From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13640 invoked by alias); 30 Sep 2002 11:49:23 -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 13630 invoked from network); 30 Sep 2002 11:49:22 -0000 Received: from unknown (HELO smtp-relay-1.adobe.com) (192.150.11.1) by sources.redhat.com with SMTP; 30 Sep 2002 11:49:22 -0000 Received: from inner-relay-2.corp.adobe.com (inner-relay-2 [153.32.1.52]) by smtp-relay-1.adobe.com (8.12.3/8.12.3) with ESMTP id g8UBpsVN010764 for ; Mon, 30 Sep 2002 04:51:54 -0700 (PDT) Received: from iplan-mn.corp.adobe.com (iplan-mn.corp.adobe.com [130.248.25.5]) by inner-relay-2.corp.adobe.com (8.12.3/8.12.3) with ESMTP id g8UBkivW010282 for ; Mon, 30 Sep 2002 04:46:44 -0700 (PDT) Received: from [130.248.25.159] ([192.150.11.13]) by iplan-mn.corp.adobe.com (Netscape Messaging Server 4.15 mn Jul 11 2001 16:32:57) with ESMTP id H3926300.73G for ; Mon, 30 Sep 2002 06:49:15 -0500 User-Agent: Microsoft-Entourage/10.0.0.1331 Date: Mon, 30 Sep 2002 04:49:00 -0000 Subject: Re: GCC compile problem ... From: John Love-Jensen To: Message-ID: In-Reply-To: <200209280052.38305.sebastian-huber@web.de> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-SW-Source: 2002-09/txt/msg00229.txt.bz2 Hi Sebastian, > I think, that this is not true. If you assign a temporary object to a constant > reference, the object will survive until the reference is destroyed. Thanks Sebastian, I stand corrected! A const-reference has lifespan beyond the full expression. q.v. Stroustrup's C++PL 3rd ed, section 10.4.10 Sincerely, --Eljay Live like you'll die tomorrow. Learn like you'll live forever.