"algorithmus at gmail dot com" <[EMAIL PROTECTED]> writes:
| ---new.cpp
| #include
|
| #define swap(a,b) a^=b^=a^=b
You're modifying objects more than once without intervening sequence
points. All bets are off. There is a standard utility std::swap() from
that works all the time.
PR invali
hi!
I have a problem with multiply assigment at
i386-portbld-freebsd5.4
gcc version 4.0.1 20050609 (prerelease) [FreeBSD]
and the same problem in DJGPP with gcc 4.0.0
I've compiled my cpp file with this command line:
g++40 new.cpp
---new.cpp
#include
#define swap(a,b) a^=b^=a^=b
const in