Re: Asymmetry of user-difined swap and distance

2009-08-07 Thread Maxim Dementiev
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

Re: Asymmetry of user-difined swap and distance

2009-08-07 Thread Jonathan Wakely
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