This is the mail archive of the gcc-bugs@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]

Re: can't parse qualified member names


Alexandre Oliva wrote:
> 
> On Jun 17, 1999, Vaclav Barta <vbar@comp.cz> wrote:
> 
> >       int a = opt.COptions<int>::Get("a");
> 
> Try:
> 
>         int a = opt.template COptions<int>::Get("a");
I settled for
	int a = (opt.*&COptions<int>::Get)("a");
which is equally confusing, but at least legal C++. It
may be measurably less efficient, but I don't think
that matters here...

	Bye
		Vasek


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