Skip to content

Commit

Permalink
Merge pull request #4865 from 9il/tohash
Browse files Browse the repository at this point in the history
fix issue 16609
  • Loading branch information
andralex authored Nov 1, 2016
2 parents 31dad0c + 5276707 commit 00ce4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/experimental/ndslice/slice.d
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ struct Slice(size_t _N, _Range)
See_also: $(LREF Slice.toMurmurHash3), $(MREF std, _digest, murmurhash).
+/
size_t toHash() const
size_t toHash() const @safe
{
static if (size_t.sizeof == 8)
{
Expand Down Expand Up @@ -2059,7 +2059,7 @@ struct Slice(size_t _N, _Range)
See_also: $(LREF Slice.toHash), $(MREF std, _digest, murmurhash)
+/
auto toMurmurHash3(uint size /* 32 or 128 */ , uint opt = size_t.sizeof == 8 ? 64 : 32)() const
auto toMurmurHash3(uint size /* 32 or 128 */ , uint opt = size_t.sizeof == 8 ? 64 : 32)() const @trusted
{
import std.digest.murmurhash : MurmurHash3;
enum msg = "unable to compute hash value for type " ~ DeepElemType.stringof;
Expand Down

0 comments on commit 00ce4ed

Please sign in to comment.