Skip to content

Commit

Permalink
Merge pull request #111 from dawgfoto/Bug5705
Browse files Browse the repository at this point in the history
fixup #5705
  • Loading branch information
andralex committed Jun 20, 2011
2 parents a319cd3 + 449459a commit 805bb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/algorithm.d
Expand Up @@ -1479,7 +1479,7 @@ if (isMutable!T && !is(typeof(T.init.proxySwap(T.init))))
{
static if (hasElaborateAssign!T)
{
if (lhs !is rhs) {
if (&lhs != &rhs) {
// For structs with non-trivial assignment, move memory directly
// First check for undue aliasing
assert(!pointsTo(lhs, rhs) && !pointsTo(rhs, lhs)
Expand Down

0 comments on commit 805bb5e

Please sign in to comment.