Skip to content

Commit

Permalink
fix issue 16386: avoid the assignment operator on an object that has …
Browse files Browse the repository at this point in the history
…been destroyed
  • Loading branch information
rainers committed Aug 14, 2016
1 parent 41a1d2b commit 17d064e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion std/concurrency.d
Original file line number Diff line number Diff line change
Expand Up @@ -2405,9 +2405,14 @@ private
}
}
if (n)
*n = Node(v);
{
import std.conv : emplace;
emplace!Node(n, v);
}
else
{
n = new Node(v);
}
return n;
}

Expand Down

0 comments on commit 17d064e

Please sign in to comment.