can't parse qualified member names

Vaclav Barta vbar@comp.cz
Thu Jun 17 12:34:00 GMT 1999


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


More information about the Gcc-bugs mailing list