Copy-and-swap idiom implemented in Datagram