template instance testA.FormatParser!(F) forward reference of variable F

ref2401 refactor24 at gmail.com
Wed Oct 9 04:48:09 PDT 2013


i've found the solution:

void put(T)(T mesh) {
	static if (is(T : MyClass!F, string F)) {
		writeln("put method: ", F);
	} else {
		static assert(0, "Invalid type '" ~ 
std.traits.fullyQualifiedName!T ~ "'.");
	}
}


More information about the Digitalmars-d-learn mailing list