Bug 7360 – Predicate templates in std.traits should consider alias this
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-24T06:27:00Z
Last change time
2012-06-14T02:24:02Z
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2012-01-24T06:27:49Z
Some predicate templates in std.traits does not consider alias this type.
isIntegral
isFloatingPoint
isNumeric = isIntegral!T || isFloatingPoint!T
isUnsigned
isSigned
isSomeChar
isAssociativeArray
isDelegate
isSomeFunction when T is delegate
But others consider it.
isSomeString
isNarrowString
isStaticArray
isDynamicArray
isArray = isStaticArray!T || isDynamicArray!T
isPointer
isIterable
isFunctionPointer
isSomeFunction when T is function pointer
I think all of them should consider alias this, because alias this type is just a proper super-type.