On Saturday, 19 July 2014 at 06:13:10 UTC, Manu via Digitalmars-d wrote:
Anyway, does anybody know a nice tidy way to do it?

Unfortunately the only way to create perfect forwarding functions completely generically is still using an ugly string mixin that generates the forwarding function. A subset of forwarding functions can be created using templates and auto-ref, but of course a function template has many disadvantages to a concrete function (virtual functions being a good example).

Reply via email to