From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10592 invoked by alias); 12 Jan 2003 11:25:17 -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 10584 invoked from network); 12 Jan 2003 11:25:15 -0000 Received: from unknown (HELO mel-rto6.wanadoo.fr) (193.252.19.25) by 209.249.29.67 with SMTP; 12 Jan 2003 11:25:15 -0000 Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto6.wanadoo.fr (6.7.015) id 3E0C343F008ADE33 for gcc-help@gcc.gnu.org; Sun, 12 Jan 2003 12:25:04 +0100 Received: from brisedorient (80.11.189.66) by mel-rta9.wanadoo.fr (6.7.015) id 3E075B46008E9E7F for gcc-help@gcc.gnu.org; Sun, 12 Jan 2003 12:25:04 +0100 Message-ID: <001701c2ba2d$422ceb90$42bd0b50@brisedorient> From: "erwan ancel" To: References: <005c01c2ba19$cc6699a0$4fbd0b50@brisedorient> <000501c2ba24$e7170630$42bd0b50@brisedorient> <200301121202.42252.sebastian-huber@web.de> Subject: Re: C++ templates: precisions Date: Sun, 12 Jan 2003 11:25:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-01/txt/msg00094.txt.bz2 Yes, you're right. But why is it ?? Does the compiler go further to 'cache' a pre-compilation of the template in case of class ? ----- Original Message ----- From: "Sebastian Huber" To: Sent: Sunday, January 12, 2003 12:02 PM Subject: Re: C++ templates: precisions Hello! On Sunday 12 January 2003 11:25, erwan ancel wrote: > well, this is my problem: > > I would like to make a template class that owns a set of elements that have > the type of one of the class parameters. And it doesn't compile... > example: > > #include > template 'template' may fix your problem. > class A > { > public: > A(); > B(); > std::set _list; > }; > > the compiler's output tells that the type T is not defined... Well, of > course, but it will be defined when the template will be instanciated. So > it should be possible... > Does anybody know a solution to my problem?