alias this to a template function

Peter Alexander peter.alexander.au at gmail.com
Sun Nov 11 13:42:44 PST 2012


On Sunday, 11 November 2012 at 21:36:41 UTC, Adam D. Ruppe wrote:
> I'm just curious if this is supposed to eventually work:

How can the compiler possibly figure out what T is supposed to be?

This will never work. It doesn't even work without the alias this.

void main() {
	Test t;
	int a = t.get(); // cannot deduce T
}


More information about the Digitalmars-d mailing list