Fun with inout

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 6 04:00:36 PDT 2014


template ReturnType1(alias F, TArg)
{
	alias ReturnType1=typeof((){
		ReturnType!F function(inout Unqual!TArg) test;
		TArg testv;
		return test(testv);
	}());
}


More information about the Digitalmars-d mailing list