The Client types that follow pimpl idiom had warnings that they needed to define destructors as well to satisfy the rule of five.
We don't need to define move/copy/copy-assign/move-assign for these at all, instead we can follow the rule of zero since the only member is a std::unique_ptr.
The
Client
types that follow pimpl idiom had warnings that they needed to define destructors as well to satisfy the rule of five.We don't need to define move/copy/copy-assign/move-assign for these at all, instead we can follow the rule of zero since the only member is a
std::unique_ptr
.