Added inline to a specialization of swap to avaid multiple definitions