On 08/17/2015 02:33 PM, Timon Gehr wrote:
enum binaryFunString(alias x:binaryFun!T,T...)=T[0];static assert(binaryFunString!x=="a+b"); static assert(binaryFunString!y=="a+b"); static assert(binaryFunString!z=="a-b");
Note that the remaining template arguments to binaryFun are important as well, they give the parameter names.
You might want to use std.traits.TemplateArgsOf.
