← Back to index
|
Original Bugzilla link
Bug 18152 – std.format.formattedRead should work with rvalues.
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-01-02T20:53:01Z
Last change time
2018-01-02T21:30:32Z
Keywords
pull
Assigned to
No Owner
Creator
hsteoh
Comments
Comment #0
by hsteoh — 2018-01-02T20:53:01Z
The following code should work: ----- string[int] aa1; formattedRead!("%s")(`[1:"hello", 2:"world"]`, aa1); assert(aa1 == [1:"hello", 2:"world"]); int[string] aa2; formattedRead(`{"hello"=1; "world"=2}`, "{%(%s=%s; %)}", aa2); assert(aa2 == ["hello":1, "world":2]); -----
Comment #1
by hsteoh — 2018-01-02T20:53:48Z
https://github.com/dlang/phobos/pull/5971
Comment #2
by github-bugzilla — 2018-01-02T21:30:31Z
Commit pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/146306a27b80c407d619a4aa8aa44f8fc562e343
Fix Issue 18152 - Make std.format.formattedRead usable with rvalues