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 552d139 commit 60924b6Copy full SHA for 60924b6
1 file changed
std/typecons.d
@@ -1169,12 +1169,12 @@ if (distinctFieldNames!(Specs))
1169
Returns:
1170
A `size_t` representing the hash of this `Tuple`.
1171
*/
1172
- size_t toHash() const nothrow @safe
+ size_t toHash() const nothrow @trusted
1173
{
1174
size_t h = 0;
1175
static foreach (i, T; Types)
1176
{{
1177
- const k = typeid(T).getHash((() @trusted => cast(const void*) &field[i])());
+ const k = hashOf(field[i]);
1178
static if (i == 0)
1179
h = k;
1180
else
0 commit comments