From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26293 invoked by alias); 27 Jun 2006 17:35:46 -0000 Received: (qmail 26284 invoked by uid 22791); 27 Jun 2006 17:35:44 -0000 X-Spam-Check-By: sourceware.org Received: from llaic3.u-clermont1.fr (HELO laic.u-clermont1.fr) (193.49.118.43) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Jun 2006 17:35:43 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by laic.u-clermont1.fr (Postfix) with ESMTP id 56BEC789DA for ; Tue, 27 Jun 2006 19:25:37 +0200 (CEST) Received: from laic.u-clermont1.fr ([127.0.0.1]) by localhost (llaic3 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30919-09 for ; Tue, 27 Jun 2006 19:25:37 +0200 (CEST) Received: by laic.u-clermont1.fr (Postfix, from userid 65534) id 1E124789DC; Tue, 27 Jun 2006 19:25:37 +0200 (CEST) Received: from [193.49.118.53] (unknown [193.49.118.53]) by laic.u-clermont1.fr (Postfix) with ESMTP id E29EC789DA for ; Tue, 27 Jun 2006 19:25:36 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v750) Content-Transfer-Encoding: 7bit Message-Id: <9DC23426-6E00-4CD1-968F-0D6A0AF147B7@club-internet.fr> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: gcc-help@gcc.gnu.org From: Pierre Chatelier Subject: Template parameters problem Date: Tue, 27 Jun 2006 17:35:00 -0000 X-Mailer: Apple Mail (2.750) 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 X-SW-Source: 2006-06/txt/msg00237.txt.bz2 Hello, gcc reports an error that I do not understand; does anyone know if it is a bug or some corner case of the standard ? #include #include using namespace std; void resetBar(const map& foo = map()) { }//ok struct Foo { void resetFoo(const map& foo = map()) { }//error (main.cpp:11: error: expected ',' or '...' before '>' token main.cpp:11: error: wrong number of template arguments (1, should be 4)) }; Regards, Pierre Chatelier