The default assignment operator is not generated for Handle
because it would be ill-formed. What it does is simply assigns member-wise and that obviously isn't allowed on const
members.
Instead, don't declare them const
. If they're not intended to be modified outside of assignment operator, simply put them in private
section and don't provide interface that would allow modification.