Add Post::clone() method for shallow copying a Post #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/18/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds a new static method
Post::clone()which takes aPostinstance as an argument and creates a new shallow copy of that Post. The copied Post is then returned from this method.