From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19749 invoked by alias); 26 Nov 2004 06:20:12 -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 19719 invoked from network); 26 Nov 2004 06:20:05 -0000 Received: from unknown (HELO smtp5.uk1.bibliotech.net) (212.57.34.104) by sourceware.org with SMTP; 26 Nov 2004 06:20:05 -0000 Received: from pmweb12.uk1.bibliotech.net ([212.57.34.139]) by smtp5.uk1.bibliotech.net with esmtp (Exim 3.32 #1) id 1CXZSd-0006Ce-00 for gcc-help@gcc.gnu.org; Fri, 26 Nov 2004 06:20:03 +0000 Received: from pmweb by pmweb12.uk1.bibliotech.net with local (Exim 4.04) id 1CXZSY-0006B6-00 for gcc-help@gcc.gnu.org; Fri, 26 Nov 2004 06:19:58 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 From: Yogesh Kini To: gcc-help@gcc.gnu.org Subject: Explicit specialization problem Date: Fri, 26 Nov 2004 06:20:00 -0000 X-Postmaster: Sent from Postmaster http://www.postmaster.co.uk/, the world's premier web based email service, based in London, England. X-Postmaster-Trace: Account name: kini1982; Domain name: postmaster.co.uk; Local time: Fri Nov 26 06:19:58 2004; Local host: pmweb12.uk1.bibliotech.n et; Remote host: 203.129.246.90; Referer site: www.postmaster.co.uk X-Complaints-To: General account for reporting spam and other abuse of the service , IT coordinator at responsible organisation X-Postmaster-Team-Photo: http://www.postmaster.co.uk/static/en/nav/credits .html Message-Id: Reply-To: kini1982@postmaster.co.uk X-SW-Source: 2004-11/txt/msg00184.txt.bz2 Hi, When I compile the below code using gcc 3.3 I get the errors as below. But MS VC++ compiles it straight. Can any one please tell me what the problem is? Thanks, Yogesh namespace xyz { template class ABC { template struct M { float a,b,c; }; template<> struct M -> Error here { int i,j,k; }; }; }; main.cpp:59: error: enclosing class templates are not explicitly specialized main.cpp:61: error: template parameters not used in partial specialization: main.cpp:61: error: `A' main.cpp:61: error: `B' main.cpp:61: error: `C' ___________________________________________________ Meet other people who share your interests. http://www.homemaster.net - Homemaster. Come Together. Online.