https://issues.dlang.org/show_bug.cgi?id=20298
--- Comment #2 from Vladimir Panteleev <[email protected]> --- Thanks for looking at this! (In reply to RazvanN from comment #1) > As > far as I could tell the lambda template instantion is inside the scope of > the S struct Hmm! But, shouldn't it infer that since it doesn't access anything other than its arguments, it should not have a context? I see that ipred is typed as a function not delegate. > you cannot call it from fun, since fun may call only const > functions and pred is mutable. Thanks, I actually didn't realize that fun being const was a crucial part of this. I guess the error message could be better. --
