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 c0e932a commit f0d6b58Copy full SHA for f0d6b58
src/containers/hashmap.d
@@ -790,3 +790,9 @@ version(emsi_containers_unittest) unittest
790
static struct S { @disable this(this); }
791
alias HM = HashMap!(int, S);
792
}
793
+
794
+version(emsi_containers_unittest) unittest
795
+{
796
+ struct S { int* a; }
797
+ alias HM = HashMap!(S, int);
798
+}
src/containers/internal/hash.d
@@ -15,7 +15,7 @@ static if (hash_t.sizeof == 4)
15
16
else
17
{
18
- hash_t generateHash(T)(T value) if (!is(T == string))
+ hash_t generateHash(T)(const T value) if (!is(T == string))
19
20
return hashOf(value);
21
0 commit comments