Closed jwakely closed 3 years ago
Adding overloads to namespace std is undefined behaviour. The correct way to customize swap is to provide an overload in the type's own namespace, so it will be found by ADL.
Adding overloads to namespace std is undefined behaviour. The correct way to customize swap is to provide an overload in the type's own namespace, so it will be found by ADL.