[phobos] [D-Programming-Language/phobos] 6ba09e: fix Issue 10916 - toHash on VariantN not being rec...

GitHub via phobos phobos at puremagic.com
Fri Jul 4 09:57:52 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 6ba09e0c6da7f84fa575a81710c83ce21e0b9966
      https://github.com/D-Programming-Language/phobos/commit/6ba09e0c6da7f84fa575a81710c83ce21e0b9966
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2014-07-05 (Sat, 05 Jul 2014)

  Changed paths:
    M std/variant.d

  Log Message:
  -----------
  fix Issue 10916 - toHash on VariantN not being recognised

Make VariantN.toHash() const nothrow @safe. Assume that `VariantN.type` property is @safe nothrow.


  Commit: 0e3e71fc7cdc796c1c39af09a2132f3d44632d42
      https://github.com/D-Programming-Language/phobos/commit/0e3e71fc7cdc796c1c39af09a2132f3d44632d42
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2014-07-05 (Sat, 05 Jul 2014)

  Changed paths:
    M std/typecons.d

  Log Message:
  -----------
  Remove redundant Tuple.opEquals

Today struct type equality `a == b` is expanded to `a.tupleof == b.tupleof`, so opEquals method is unnecessary for `std.tyoecons.Tuple`.


  Commit: 520c53578910c1af774d514c0980521550892cb4
      https://github.com/D-Programming-Language/phobos/commit/520c53578910c1af774d514c0980521550892cb4
  Author: monarch dodra <monarchdodra at gmail.com>
  Date:   2014-07-04 (Fri, 04 Jul 2014)

  Changed paths:
    M std/typecons.d
    M std/variant.d

  Log Message:
  -----------
  Merge pull request #2303 from 9rnsr/fix_hash

Tweak Tuple and Variant for correct hashing


Compare: https://github.com/D-Programming-Language/phobos/compare/98e5c72eee40...520c53578910


More information about the phobos mailing list