In reading TCPL, I got a problem, as the title refered, and then \'private\' class is:
class Unique_handle {
private:
Unique_handle& operato
As its name suggests, the Unique_handle isn't meant to be copied. Its implementation ensures it by disabling the copy constructor and copy assignment operator.
One solution for multiple instances having access to a Unique_handle is holding a pointer to it, and copying the pointer. Then multiple instances of Y point to the same unique handle.
Take care, however, to manage resources properly in this case.