[Issue 10916] New: toHash on VariantN not being recognised
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 28 04:21:49 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10916
Summary: toHash on VariantN not being recognised
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: public2 at jasondendulk.com
--- Comment #0 from Jason den Dulk <public2 at jasondendulk.com> 2013-08-28 04:21:47 PDT ---
Discussed at
http://forum.dlang.org/thread/bhbaxpxynjzpcfccdhkt@forum.dlang.org.
Apparently the toHash function in VariantN is not declared properly, leading it
to ignored in favour of the default toHash for structs.
Currently:
size_t toHash()
Should be:
size_t toHash() const nothrow @safe
As an example of what happens - assert(Variant("a") in assoc) can fail even if
Variant("a") *is* a key of assoc.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list