[Issue 21088] New: std.meta.staticMap no longer works for typeid

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 29 10:58:14 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21088

          Issue ID: 21088
           Summary: std.meta.staticMap no longer works for typeid
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: default_357-line at yahoo.de

```
import std.meta;
enum getTypeId(T) = typeid(T);
void main() { alias a = staticMap!(getTypeId, int); }
```

-> std/meta.d-mixin-810(810): Error: expression typeid(int) is not a valid
template value argument

I know why. PR incoming.

--


More information about the Digitalmars-d-bugs mailing list