Boost logo

Boost :

From: Václav Veselý (vaclav.vesely_at_[hidden])
Date: 2006-03-30 15:34:54


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





Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk