arch 32 piswap fixes
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -119,8 +119,10 @@ struct A {
|
||||
|
||||
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 swap(size_t & x, size_t & y) {size_t t = x; x = y; y = t;}
|
||||
void swap2(size_t & x, size_t & y) {size_t t{std::move(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 swap(llong & x, llong & y) {llong t = x; x = y; y = t;}
|
||||
void swap2(llong & x, llong & y) {llong t{std::move(x)}; x = y; y = t;}
|
||||
void swap(double & x, double & y) {double t = x; x = y; y = t;}
|
||||
void swap2(double & x, double & y) {double t(std::move(x)); x = std::move(y); y = std::move(t);}
|
||||
void swap(float & x, float & y) {float t = x; x = y; y = t;}
|
||||
|
||||
Reference in New Issue
Block a user