[Issue 3909] toDelegate handles only a tiny subset of function pointer types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 9 19:05:58 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=3909
Bolpat <qs.il.paperinik at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |qs.il.paperinik at gmail.com
Resolution|--- |FIXED
--- Comment #5 from Bolpat <qs.il.paperinik at 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.
--
More information about the Digitalmars-d-bugs
mailing list