J
James Kanze
Kai-Uwe Bux said:James Kanze wrote:
[...]
I see. For the template stuff that I am dealing with, this
would be the most inconvenient convention.
This is probably the difference. The only times I use templates
are in very low level stuff. In which case, the only class
types I have to deal with are my own, or those in the standard
library; there are no other libraries below me. And of course,
the class types in my own code and in the standard library all
have a member swap. Using it (and explicitly std::swap for the
non class types) avoids the name lookup issue of calling swap
from within a function named swap.
I can see, however, that it is probably the most
convenient for you (and it makes the least assumptions).
In the concrete situations I've had to deal with to date.