← Back to index
|
Original Bugzilla link
Bug 16070 – std.meta.{ApplyLeft,ApplyRight} fail with mixed type/value arguments
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-05-24T18:43:00Z
Last change time
2016-10-01T11:45:23Z
Keywords
pull
Assigned to
nobody
Creator
ag0aep6g
Comments
Comment #0
by ag0aep6g — 2016-05-24T18:43:58Z
Should work: ---- alias Templ(T, string name) = AliasSeq!(T, name); alias PartialL = ApplyLeft!(Templ, int); alias FullL = PartialL!"foo"; static assert(is(FullL[0] == int)); static assert(FullL[1] == "foo"); alias PartialR = ApplyRight!(Templ, "bar"); alias FullR = PartialR!int; static assert(is(FullR[0] == int)); static assert(FullR[1] == "bar"); ----
Comment #1
by ag0aep6g — 2016-05-24T18:52:19Z
https://github.com/dlang/phobos/pull/4352
Comment #2
by github-bugzilla — 2016-06-08T07:51:36Z
Commit pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/fad7eb0bf8bb40b183f66434f2d8fb938be972db
simplify Alias/ApplyLeft/ApplyRight impl, fix Issue 16070, more tests
Comment #3
by github-bugzilla — 2016-10-01T11:45:23Z
Commit pushed to stable at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/fad7eb0bf8bb40b183f66434f2d8fb938be972db
simplify Alias/ApplyLeft/ApplyRight impl, fix Issue 16070, more tests