From 4e4f73b646b51a8a1fa2f2605621469a3e6c2cd7 Mon Sep 17 00:00:00 2001 From: monarch dodra Date: Mon, 8 Jul 2013 09:46:03 +0200 Subject: [PATCH] Remove pointsTo in move as well as remove erroneous documentation. --- std/algorithm.d | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/std/algorithm.d b/std/algorithm.d index 6ccbb0e2c..0de900509 100644 --- a/std/algorithm.d +++ b/std/algorithm.d @@ -1859,21 +1859,12 @@ private struct FilterBidiResult(alias pred, Range) // move /** Moves $(D source) into $(D target) via a destructive -copy. Specifically: $(UL $(LI If $(D hasAliasing!T) is true (see -$(XREF traits, hasAliasing)), then the representation of $(D source) -is bitwise copied into $(D target) and then $(D source = T.init) is -evaluated.) $(LI Otherwise, $(D target = source) is evaluated.)) See -also $(XREF exception, pointsTo). - -Preconditions: -$(D &source == &target || !pointsTo(source, source)) +copy. */ void move(T)(ref T source, ref T target) { import core.stdc.string : memcpy; - import std.exception : pointsTo; - assert(!pointsTo(source, source)); static if (is(T == struct)) { if (&source == &target) return;