Move assignment operator: Difference between revisions

Content deleted Content added
C++Bro123 (talk | contribs)
Add noexcept to example
Line 15:
class String {
public:
String& operator=(String&& other) noexcept {
// If we're not trying to move the object into itself...
if (this != &other) {