[phobos] [D-Programming-Language/phobos] 5a9c0b: Fixes 14457 (VariantN opAssign subset variant)

GitHub via phobos phobos at puremagic.com
Sat Apr 25 22:21:41 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 5a9c0bcd6bb60b32eca098fbbaf46746a0cbcfb4
      https://github.com/D-Programming-Language/phobos/commit/5a9c0bcd6bb60b32eca098fbbaf46746a0cbcfb4
  Author: Justin Whear <justin at economicmodeling.com>
  Date:   2015-04-17 (Fri, 17 Apr 2015)

  Changed paths:
    M std/variant.d

  Log Message:
  -----------
  Fixes 14457 (VariantN opAssign subset variant)

Allows a VariantN to be assigned from another VariantN that is a strict
subset.  Implements an opAssign overload that specializes on VariantN
instantations that are not the current VariantN but whose AllowedTypes
are a subset of the current variant's.

Added accompanying unittest.

Fix Issue 14457


  Commit: cb32577275156f5468ecd342542677e0074b46b9
      https://github.com/D-Programming-Language/phobos/commit/cb32577275156f5468ecd342542677e0074b46b9
  Author: Justin Whear <justin at economicmodeling.com>
  Date:   2015-04-21 (Tue, 21 Apr 2015)

  Changed paths:
    M std/variant.d

  Log Message:
  -----------
  Add algebraic subset constructor

Allows construction from an algrebraic subset of types, leveraging
similar opAssign.


  Commit: e07a72151bfb4d025208d830949fb830e2489d7c
      https://github.com/D-Programming-Language/phobos/commit/e07a72151bfb4d025208d830949fb830e2489d7c
  Author: Justin Whear <justin at economicmodeling.com>
  Date:   2015-04-21 (Tue, 21 Apr 2015)

  Changed paths:
    M std/variant.d

  Log Message:
  -----------
  minor style: change Tsize to tsize


  Commit: e813450c22bb0c6f0bd2e27311b9f813ca87781e
      https://github.com/D-Programming-Language/phobos/commit/e813450c22bb0c6f0bd2e27311b9f813ca87781e
  Author: Justin Whear <justin at economicmodeling.com>
  Date:   2015-04-21 (Tue, 21 Apr 2015)

  Changed paths:
    M std/variant.d

  Log Message:
  -----------
  Tabs to spaces


  Commit: b222623c16452d4172be3fc2b1cb62dc27ca4f29
      https://github.com/D-Programming-Language/phobos/commit/b222623c16452d4172be3fc2b1cb62dc27ca4f29
  Author: JakobOvrum <JakobOvrum at users.noreply.github.com>
  Date:   2015-04-26 (Sun, 26 Apr 2015)

  Changed paths:
    M std/variant.d

  Log Message:
  -----------
  Merge pull request #3209 from jwhear/fix_14457

Fixes 14457 (VariantN assignment from subset VariantN)


Compare: https://github.com/D-Programming-Language/phobos/compare/d0252f9641dc...b222623c1645


More information about the phobos mailing list