opApply with Type Inference and Templates?

Jerry via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 15 19:20:12 PST 2017


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?


More information about the Digitalmars-d-learn mailing list