Thread overview | |||||
---|---|---|---|---|---|
|
May 23, 2015 [Issue 11098] template instance x cannot use local y as parameter to non-global template z | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=11098 ryan@rcorre.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ryan@rcorre.net -- |
May 23, 2015 [Issue 11098] template instance x cannot use local y as parameter to non-global template z | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=11098 --- Comment #2 from ryan@rcorre.net --- This is still around in DMD2.067. The UFCS trick is a nice work-around on the callee side. You can also work around it on the caller side with: struct S { void f(alias F)() { } } void main() { static int fun(int i) { return i; } S.init.f!(fun); } Both are less than ideal though. -- |
February 16, 2018 [Issue 11098] template instance x cannot use local y as parameter to non-global template z | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=11098 Simen Kjaeraas <simen.kjaras@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |simen.kjaras@gmail.com Resolution|--- |DUPLICATE --- Comment #3 from Simen Kjaeraas <simen.kjaras@gmail.com> --- *** This issue has been marked as a duplicate of issue 5710 *** -- |
Copyright © 1999-2021 by the D Language Foundation