Re: Template parameters problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux