[phobos] [D-Programming-Language/phobos] 2e317d: std.algorithm: Fix the hasAssignableElements restr...

GitHub noreply at github.com
Thu Jan 16 09:35:59 PST 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 2e317d0c5de298d92aa496e2960f1a9627073324
      https://github.com/D-Programming-Language/phobos/commit/2e317d0c5de298d92aa496e2960f1a9627073324
  Author: Vladimir Panteleev <vladimir at thecybershadow.net>
  Date:   2014-01-14 (Tue, 14 Jan 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  std.algorithm: Fix the hasAssignableElements restriction from HeapSort

This restriction seems unnecessary (as HeapSortImpl uses swap/swapAt,
which does not require assignability), and was getting in the way of
e.g. sorting a range of Refs. The range can satisfy either
hasAssignableElements, or hasSwappableElements


  Commit: 9e14a1f6ef1261a081dba92f8f88eb647dc3a51e
      https://github.com/D-Programming-Language/phobos/commit/9e14a1f6ef1261a081dba92f8f88eb647dc3a51e
  Author: Vladimir Panteleev <vladimir at thecybershadow.net>
  Date:   2014-01-14 (Tue, 14 Jan 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  std.algorithm: Allow proxySwap-using swap overload to take by ref


  Commit: 4e6e09c568db9cb548e8b45624b334ccf85ff522
      https://github.com/D-Programming-Language/phobos/commit/4e6e09c568db9cb548e8b45624b334ccf85ff522
  Author: Vladimir Panteleev <vladimir at thecybershadow.net>
  Date:   2014-01-14 (Tue, 14 Jan 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  std.algorithm: Add test for sorting via proxySwap


  Commit: 6732bbb835f793facfa904020195ab5f87d270b3
      https://github.com/D-Programming-Language/phobos/commit/6732bbb835f793facfa904020195ab5f87d270b3
  Author: Andrei Alexandrescu <andrei at erdani.com>
  Date:   2014-01-16 (Thu, 16 Jan 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Merge pull request #1858 from CyberShadow/std-aglorithm-sort-nonassignable

std.algorithm: Remove the hasAssignableElements restriction from HeapSortImpl


Compare: https://github.com/D-Programming-Language/phobos/compare/5c5f5a1fc7b7...6732bbb835f7


More information about the phobos mailing list