Skip to content

Commit

Permalink
Fix mistake cherry-pick on std.algorithm.swap
Browse files Browse the repository at this point in the history
Introduced by: 8442202
  • Loading branch information
9rnsr committed Feb 15, 2014
1 parent 9f78426 commit 7f0347d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/algorithm.d
Expand Up @@ -1995,7 +1995,7 @@ See_Also:
$(XREF exception, pointsTo)
*/
void swap(T)(ref T lhs, ref T rhs) @trusted pure nothrow
if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))
if (isBlitAssignable!T && !is(typeof(T.init.proxySwap(T.init))))
{
static if (hasElaborateAssign!T || !isAssignable!T)
{
Expand Down

0 comments on commit 7f0347d

Please sign in to comment.