Local templates and alias parameters

John Colvin john.loughran.colvin at gmail.com
Fri Jun 28 13:04:30 PDT 2013


void main()
{
	template A(alias a)
	{
		enum A = a.stringof;
	}
	int b;
	string s = A!b;   // Error: template instance A!(b) cannot use 
local 'b' as parameter to non-global template A(alias a)
}

Bug or feature?


More information about the Digitalmars-d-learn mailing list