fix test main.cpp
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -131,7 +131,7 @@ void swap(std::string & x, std::string & y) {std::string t = x; x = y; y = t;}
|
||||
void swap2(std::string & x, std::string & y) {std::string t{std::move(x)}; x = std::move(y); y = std::move(t);}
|
||||
void swap(A & x, A & y) {A t = x; x = y; y = t;}
|
||||
void swap2(A & x, A & y) {A t{std::move(x)}; x = std::move(y); y = std::move(t);}
|
||||
void swap(PIObject & x, PIObject & y) {A t = x; x = y; y = t;}
|
||||
//void swap(PIObject & x, PIObject & y) {A t = x; x = y; y = t;}
|
||||
//void swap2(PIObject & x, PIObject & y) {A t(std::move(x)); x = std::move(y); y = std::move(t);}
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
|
||||
Reference in New Issue
Block a user