On Fri, 7 Aug 2009 19:19:03 +0100
Jonathan Wakely wrote:
2009/8/7 Maxim Dementiev:
It means that swap for user types could be defined either in std namespace
or in the user type namespace (argument-dependent name lookup).
Yes, this is intentional. swap() is a point of customisation point,
s
2009/8/7 Maxim Dementiev:
>
> It means that swap for user types could be defined either in std namespace
> or in the user type namespace (argument-dependent name lookup).
Yes, this is intentional. swap() is a point of customisation point,
see http://www.ddj.com/cpp/184401876 and the definition in