[Issue 14909] Template argument of std.algorithm.iteration.chunkBy cannot access a local variable
https://issues.dlang.org/show_bug.cgi?id=14909 Iain Buclaw changed: What|Removed |Added Priority|P1 |P3 --
[Issue 14909] Template argument of std.algorithm.iteration.chunkBy cannot access a local variable
https://issues.dlang.org/show_bug.cgi?id=14909 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #3 from Iain Buclaw --- Possibly reduced test: --- template binaryFun(alias fun) { alias binaryFun = fun; } struct ChunkByImpl(alias pred, Range) { alias eq = binaryFun!((a, b) => pred(a)); Range r; this(Range ) { eq(r, r); } } auto chunkBy(alias pred, Range)(Range) { ChunkByImpl!(pred, Range); } void main() { auto n = 3; 1.chunkBy!(a => a+n); } --
[Issue 14909] Template argument of std.algorithm.iteration.chunkBy cannot access a local variable
https://issues.dlang.org/show_bug.cgi?id=14909 --- Comment #2 from Dlang Bot --- dlang/phobos pull request #7625 "Issue 14909: Provided a fix for the forward range version of chunkBy …" was merged into master: - 2ed6952a719ce610bc3a513d67b602163f196ff9 by James Gray: Issue 14909: Provided a fix for the forward range version of chunkBy so that it can accept predicates refernce variables in the calling function https://github.com/dlang/phobos/pull/7625 --
[Issue 14909] Template argument of std.algorithm.iteration.chunkBy cannot access a local variable
https://issues.dlang.org/show_bug.cgi?id=14909 --- Comment #1 from Dlang Bot --- @jamesragray created dlang/phobos pull request #7625 "Issue 14909: Provided a fix for the forward range version of chunkBy …" mentioning this issue: - Issue 14909: Provided a fix for the forward range version of chunkBy so that it can accept predicates refernce variables in the calling function https://github.com/dlang/phobos/pull/7625 --
[Issue 14909] Template argument of std.algorithm.iteration.chunkBy cannot access a local variable
https://issues.dlang.org/show_bug.cgi?id=14909 berni44 changed: What|Removed |Added CC||bugzi...@d-ecke.de Component|phobos |dmd --
[Issue 14909] Template argument of std.algorithm.iteration.chunkBy cannot access a local variable
https://issues.dlang.org/show_bug.cgi?id=14909 Seb changed: What|Removed |Added CC||greensunn...@gmail.com Summary|Template argument of|Template argument of |std.algoirthm.iteration.chu |std.algorithm.iteration.chu |nkBy cannot access a local |nkBy cannot access a local |variable|variable --