opApply with Type Inference and Templates?

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 16 08:25:56 PST 2017


On 02/15/2017 07:20 PM, 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?

Related:

   http://forum.dlang.org/post/ovitindvwuxkmbxufzvi@forum.dlang.org

Ali



More information about the Digitalmars-d-learn mailing list