Skip to content

Commit

Permalink
Merge pull request #641 from 9rnsr/new_autoref
Browse files Browse the repository at this point in the history
Stop using `auto ref` to distinguish lvalue and rvalue.
  • Loading branch information
jmdavis committed Jun 20, 2012
2 parents be57fa0 + 230f56c commit 19dc4fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions std/traits.d
Expand Up @@ -1822,9 +1822,8 @@ unittest

struct S4
{
void opAssign(U)(auto ref U u)
if (!__traits(isRef, u))
{}
void opAssign(U)(U u) {}
@disable void opAssign(U)(ref U u);
}
static assert( hasElaborateAssign!S4);
}
Expand Down

0 comments on commit 19dc4fe

Please sign in to comment.