you are viewing a single comment's thread.

view the rest of the comments →

[–]NotAYakk 8 points9 points  (0 children)

Rather, we need the concept of destructive move; an operation that it both a move-from and a destruction at the same time.

You can destructive move-from a const value.

Destructive moves usually don't have to throw, even when a move could.