January 09, 2021 [Issue 3909] toDelegate handles only a tiny subset of function pointer types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=3909 Bolpat <qs.il.paperinik@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |qs.il.paperinik@gmail.com Resolution|--- |FIXED --- Comment #5 from Bolpat <qs.il.paperinik@gmail.com> --- This code snippet: import std.functional; struct S { } void foo(S s) { } void main() { auto dg = toDelegate(&foo); } compiled on all dmd versions since 2.060; I won't go into the hurdle and find out which version it got fixed. Closing this. -- |
Copyright © 1999-2021 by the D Language Foundation