fix main.cpp

This commit is contained in:
2020-07-16 13:44:15 +03:00
parent 478f0a7fd3
commit c642702265

View File

@@ -119,6 +119,8 @@ struct A {
void swap(int & x, int & y) {int t = x; x = y; y = t;} void swap(int & x, int & y) {int t = x; x = y; y = t;}
void swap2(int & x, int & y) {int t(std::move(x)); x = y; y = t;} void swap2(int & x, int & y) {int t(std::move(x)); x = y; y = t;}
void swap(uint & x, uint & y) {uint t = x; x = y; y = t;}
void swap2(uint & x, uint & y) {uint t(std::move(x)); x = y; y = t;}
void swap(ullong & x, ullong & y) {ullong t = x; x = y; y = t;} void swap(ullong & x, ullong & y) {ullong t = x; x = y; y = t;}
void swap2(ullong & x, ullong & y) {ullong t{std::move(x)}; x = y; y = t;} void swap2(ullong & x, ullong & y) {ullong t{std::move(x)}; x = y; y = t;}
void swap(llong & x, llong & y) {llong t = x; x = y; y = t;} void swap(llong & x, llong & y) {llong t = x; x = y; y = t;}