Quick A: Delete the move assignment.
Recently on SO:
Most concise way to disable copy and move semantics
According to this chart (by Howard Hinnant):
The most concise way is to =delete move assignment operator (or move constructor, but it can cause problems mentioned in comments).
Though, in my opinion the most readable way is to =delete both copy constructor and copy assignment operator.
Add a Comment
Comments are closed.