We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2e679 commit cdfe705Copy full SHA for cdfe705
source/mir/string_map.d
@@ -40,9 +40,15 @@ struct StringMap(T, U = uint)
40
private Impl* implementation;
41
42
///
43
- bool opEquals()(const StringMap rhs) const
+ bool opEquals(const StringMap rhs) const
44
{
45
- return keys == rhs.keys && values == rhs.values;
+ if (keys != rhs.keys)
46
+ return false;
47
+ if (implementation)
48
+ foreach (const i; 0 .. implementation._length)
49
+ if (implementation._values[i] != rhs.implementation._values[i])
50
51
+ return true;
52
}
53
54
// // linking bug
@@ -118,7 +124,7 @@ struct StringMap(T, U = uint)
118
124
119
125
120
126
121
- string toString() const
127
+ string toString()() const
122
128
123
129
import mir.format: stringBuf;
130
stringBuf buffer;
0 commit comments