opApply with Type Inference and Templates?

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 15 20:09:18 PST 2017


On Thursday, 16 February 2017 at 03:20:12 UTC, Jerry wrote:
> I am trying to do opApply to work when the delegate passed when 
> it is and isn't nogc/nothrow. As soon as you involve a template 
> though, type inference goes out the door. I want to be able to 
> use opApply with templates (to get the auto @nogc/nothrow 
> deducation passed on the delegate passed) but still be able to 
> use type inference. Is there any way to do this?

No, by any chance do you ask this for the tuple unpacking PR ?
If so I've also tried and failed.


More information about the Digitalmars-d-learn mailing list