From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1720 invoked by alias); 16 Jan 2003 22:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1705 invoked by uid 71); 16 Jan 2003 22:26:02 -0000 Date: Thu, 16 Jan 2003 22:26:00 -0000 Message-ID: <20030116222602.1704.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: florian.kirsch@gmx.net Subject: Re: c++/9344: in template, typedef for reference return type cannot be used Reply-To: florian.kirsch@gmx.net X-SW-Source: 2003-01/txt/msg01023.txt.bz2 List-Id: The following reply was made to PR c++/9344; it has been noted by GNATS. From: florian.kirsch@gmx.net To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org Cc: Subject: Re: c++/9344: in template, typedef for reference return type cannot be used Date: Thu, 16 Jan 2003 23:16:49 +0100 (MET) Hm, i just found out that my posted code is probably incorrect, and that my problem can be solved by repeating the typename in the function declaration. I am not sure what the standard says here, though. template class Container { public: typedef typename std::vector::reference ref; typename Container::ref foo() { } // works }; Florian -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!