From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8464 invoked by alias); 12 Jan 2003 11:05:51 -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 8457 invoked from network); 12 Jan 2003 11:05:49 -0000 Received: from unknown (HELO smtp.web.de) (217.72.192.180) by 209.249.29.67 with SMTP; 12 Jan 2003 11:05:49 -0000 Received: from [129.187.26.88] (helo=mephisto) by smtp.web.de with asmtp (WEB.DE(Exim) 4.93 #1) id 18Xfvt-0003MS-00 for gcc-help@gcc.gnu.org; Sun, 12 Jan 2003 12:05:37 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Sebastian Huber To: gcc-help@gcc.gnu.org Subject: Re: C++ templates: precisions Date: Sun, 12 Jan 2003 11:05:00 -0000 User-Agent: KMail/1.4.3 References: <005c01c2ba19$cc6699a0$4fbd0b50@brisedorient> <000501c2ba24$e7170630$42bd0b50@brisedorient> In-Reply-To: <000501c2ba24$e7170630$42bd0b50@brisedorient> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200301121202.42252.sebastian-huber@web.de> X-SW-Source: 2003-01/txt/msg00093.txt.bz2 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 ha= ve > 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?