My textbook is giving an example of a generic class to store generic objects for a game board without using templates. Here is the abbreviated pseudocode:
My question is, why does the author implement a custom copy ctor and copy assignment but defaulted move semantics? Also why does he implement a strange "clone" method he uses in the copy-ctor?
the move-constructor does what the author wants (move the vector)
the copy-constructor would try a shallow copy, then fail because unique_ptr is not copyable, so you need to provide a copy-constructor