bool function(T val1,T val2) ptr=&comp!T;Moreover, comp has compile time arguments, so you can't take the address of it without forwarding the arguments. So instead of &comp, you use &comp!T - passing the T from the outside to the comparison function too.
i wish i knew that back when i needed it, so i could avoid spaghetti mess and not abandon my code :(
