mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user