Bug 8881 – Add EnumBaseType template into traits

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-23T16:20:00Z
Last change time
2012-10-25T19:54:56Z
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-10-23T16:20:24Z
This will be useful to have for the upcoming fix to Issue 8143 (std.conv.toImpl will need it). And it will be generally useful to have in the standard library.
Comment #1 by issues.dlang — 2012-10-23T17:26:38Z
Doesn't std.traits.OriginalType already do this?
Comment #2 by andrej.mitrovich — 2012-10-23T17:28:18Z
(In reply to comment #1) > Doesn't std.traits.OriginalType already do this? It appears it does. But it couldn't have a more un-original name. There's no way I would have found that..
Comment #3 by andrej.mitrovich — 2012-10-23T17:36:34Z
(In reply to comment #2) > (In reply to comment #1) > > Doesn't std.traits.OriginalType already do this? > > It appears it does. But it couldn't have a more un-original name. There's no > way I would have found that.. See my comment in Pull request.
Comment #4 by andrej.mitrovich — 2012-10-25T19:54:56Z
I needed OriginalType after all. Thx for the tip JMD.