From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28986 invoked by alias); 12 Jan 2003 10:25:31 -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 28977 invoked from network); 12 Jan 2003 10:25:28 -0000 Received: from unknown (HELO mel-rto2.wanadoo.fr) (193.252.19.254) by 209.249.29.67 with SMTP; 12 Jan 2003 10:25:28 -0000 Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto2.wanadoo.fr (6.7.015) id 3E0C3370008ABB6E for gcc-help@gcc.gnu.org; Sun, 12 Jan 2003 11:25:17 +0100 Received: from brisedorient (80.11.189.66) by mel-rta9.wanadoo.fr (6.7.015) id 3E075B46008E4657 for gcc-help@gcc.gnu.org; Sun, 12 Jan 2003 11:25:16 +0100 Message-ID: <000501c2ba24$e7170630$42bd0b50@brisedorient> From: "erwan ancel" To: References: <005c01c2ba19$cc6699a0$4fbd0b50@brisedorient> Subject: C++ templates: precisions Date: Sun, 12 Jan 2003 10: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/msg00092.txt.bz2 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 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?