fix main.cpp
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -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;}
|
||||||
|
|||||||
Reference in New Issue
Block a user