This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Template parameters problem


it must be

struct Foo
{
void resetFoo(const std::map<int,char>& foo = (std::map<int,char> ()))
{
}
};


to disambiguate the syntax

Hello,


Thanks, you are right, it works.
In the meantime, I finally found out that it was a kind of old known "bug" (bug #57 in gcc bugzilla).
Regards,


Pierre Chatelier


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]