From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3790 invoked by alias); 10 Feb 2004 04:55: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 3778 invoked from network); 10 Feb 2004 04:55:50 -0000 Received: from unknown (HELO trantor.dso.org.sg) (192.190.204.1) by sources.redhat.com with SMTP; 10 Feb 2004 04:55:50 -0000 Received: from escada.dso.org.sg (escada.dso.org.sg [192.190.204.10]) by trantor.dso.org.sg (8.12.10/8.12.10) with ESMTP id i1A4jnE8023918 for ; Tue, 10 Feb 2004 12:45:49 +0800 (SGT) Received: from 86583 ([172.18.106.126]) by escada.dso.org.sg (8.12.10/8.12.10) with SMTP id i1A4sbji017798 for ; Tue, 10 Feb 2004 12:54:37 +0800 (SGT) Message-ID: <005a01c3ef92$4ddc9030$7e6a12ac@dsonet.corp.root> From: "Tuck Sin" To: Subject: Forward declare a template class Date: Tue, 10 Feb 2004 04:55:00 -0000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0057_01C3EFD5.5BDB3130" X-Scanned-By: MIMEDefang 2.38 X-Scanned-By: MIMEDefang 2.37 X-SW-Source: 2004-02/txt/msg00094.txt.bz2 This is a multi-part message in MIME format... ------=_NextPart_000_0057_01C3EFD5.5BDB3130 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 338 Hi Is there any way to forward declare a template class.=20 For example, if I have the following code, is there any way to forward dec= lare the std::list without including list.h in my header file? //test.h #include class test { public: test() private: std::list* m_pNum; } ; Thanks Tuck Sin= ------=_NextPart_000_0057_01C3EFD5.5BDB3130--