Skip to content

Commit

Permalink
Add ditto ddoc for dscanner
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Jul 28, 2024
1 parent 0209516 commit ab7b579
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions std/algorithm/mutation.d
Original file line number Diff line number Diff line change
Expand Up @@ -1076,9 +1076,11 @@ if (__traits(compiles, target = T.init))
moveImpl(target, source);
}

/// ditto
template move(T)
if (!__traits(compiles, imported!"std.traits".lvalueOf!T = T.init))
{
///
deprecated("Can't move into `target` as `" ~ T.stringof ~ "` can't be assigned")
void move(ref T source, ref T target) => moveImpl(target, source);
}
Expand Down

0 comments on commit ab7b579

Please sign in to comment.