C++: Add default move constructor. Also removed debug comment I forgot to remove earlier. Luckily, that meant that no line numbers changed in .expected files.

This commit is contained in:
Mathias Vorreiter Pedersen
2020-06-10 17:13:04 +02:00
parent 5abab25c28
commit 1a95095505

View File

@@ -498,7 +498,7 @@ namespace IntWrapper
int data;
Class() = default;
Class(Class&&) = default;
Class(const Class &that) : data(that.data) {}
Class &operator=(const Class &that)
@@ -526,7 +526,7 @@ namespace IntWrapper
}
} // namespace IntWrapper
// using std::swap;
void test_copy_assignment_operator() {
IntWrapper::Class x;