Is this a proper implementation of the Rule of Five (or Rule of Four and 1/2)?
I am studying the Rule of Five and it’s cousins (Rule of Four and 1/2, Copy and Swap idiom, Friend Swap Function). I implemented the Rule of Four and 1/2 on a test class. It compiles well. Is there any hidden mistake in my implementation? I am particulary preoccupied about the unique_ptrs stored in the… Read More Is this a proper implementation of the Rule of Five (or Rule of Four and 1/2)?