← Back to index
|
Original Bugzilla link
Bug 8613 – std.typecons.Proxy cannot work with operator 'in'
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-02T19:20:00Z
Last change time
2013-03-11T22:06:14Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
cpunion
Comments
Comment #0
by cpunion — 2012-09-02T19:20:38Z
--- code import std.typecons; struct Name { this(string value) { value_ = value; } mixin Proxy!(value_); private string value_; } void main() { bool[Name] names; names[Name("a")] = true; bool* b = (Name("a") in names); } --- --- compiler output $ dmd testproxy.d /usr/local/Cellar/dmd/2.060/src/phobos/std/typecons.d(2659): Error: cannot implicitly convert expression (this.value_) of type string to Name testproxy.d(16): Error: template instance testproxy.Name.Proxy!(value_).opBinary!("in",Name,bool[Name]) error instantiating ---
Comment #1
by andrej.mitrovich — 2013-02-05T08:46:22Z
*** Issue 9407 has been marked as a duplicate of this issue. ***
Comment #2
by k.hara.pg — 2013-03-11T20:42:59Z
https://github.com/D-Programming-Language/phobos/pull/1200
Comment #3
by github-bugzilla — 2013-03-11T22:05:49Z
Commit pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/89c0c186020db5097a3716aaf9e6dfd129b938fb
fix Issue 8613 - std.typecons.Proxy cannot work with operator 'in'