From: Pierre Chatelier <pierre.chatelier@club-internet.fr>
To: gcc-help@gcc.gnu.org
Subject: Template parameters problem
Date: Tue, 27 Jun 2006 17:35:00 -0000 [thread overview]
Message-ID: <9DC23426-6E00-4CD1-968F-0D6A0AF147B7@club-internet.fr> (raw)
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 <map>
#include <string>
using namespace std;
void resetBar(const map<int,char>& foo = map<int,char>())
{
}//ok
struct Foo
{
void resetFoo(const map<int,char>& foo = map<int,char>())
{
}//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
next reply other threads:[~2006-06-27 17:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-27 17:35 Pierre Chatelier [this message]
2006-06-27 18:01 ` Oliver Kullmann
2006-06-27 18:25 ` Pierre Chatelier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9DC23426-6E00-4CD1-968F-0D6A0AF147B7@club-internet.fr \
--to=pierre.chatelier@club-internet.fr \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).