Re: Duplicate another function's parameters in a template function
On Mon, 20 Apr 2015 22:50:52 +, Tofu Ninja wrote: > I am trying to write a template function that can take another function > as an alias template argument and duplicate its parameters for it self. > > I tried.. > > auto pass(alias f, T...)(T t) > { > // other stuff... return f(t); > }
Re: Duplicate another function's parameters in a template function
On Monday, 20 April 2015 at 23:20:07 UTC, Justin Whear wrote: See std.functional.forward: http://dlang.org/phobos/std_functional.html#.forward Sweet beans, thanks