
30 Mar
2006
30 Mar
'06
8:34 p.m.
I've tried to make swap for tuples. It swap's tuple's items one by one. It work's fine in MSVC 7.1 and 8.0. MSVC 6.0 doesn't work correct due to not working Koeing lookup. I can defin swap for tuples in global namespace, but for swap individual items std::swap is always used. I don't know how to go around it. For GCC I have to write strange workaround - swap_tuples must take parameters by const reference. (see "#if defined(__GNUC__)"). I'm not sure if it's compiler bug or my fault. Can anyone explain? Regards, Vaclav
7015
Age (days ago)
7015
Last active (days ago)
0 comments
1 participants
participants (1)
-
Václav Veselý