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 ad8e39d commit 67f1edcCopy full SHA for 67f1edc
1 file changed
std/typecons.d
@@ -1135,12 +1135,20 @@ if (distinctFieldNames!(Specs))
1135
Returns:
1136
A `size_t` representing the hash of this `Tuple`.
1137
*/
1138
- size_t toHash() const nothrow @trusted
+ size_t toHash()() const nothrow @trusted
1139
{
1140
- size_t h = 0;
1141
- foreach (i, T; Types)
1142
- h += typeid(T).getHash(cast(const void*)&field[i]);
1143
- return h;
+ version(D_BetterC)
+ {
+ // Disabled in -betterC for now as TypeInfo isn't present
+ static assert (0, "Not implemented");
1144
+ }
1145
+ else
1146
1147
+ size_t h = 0;
1148
+ foreach (i, T; Types)
1149
+ h += typeid(T).getHash(cast(const void*)&field[i]);
1150
+ return h;
1151
1152
}
1153
1154
///
0 commit comments