fix test main.cpp

This commit is contained in:
2020-07-16 12:52:44 +03:00
parent 5fd429cca6
commit 1045b274fb

View File

@@ -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[]) {