Overload of the assignment operator and the copy constructor in an UCLASS

Hello,

I am trying to create a C ++ class as a base for blueprints, and I need to overload the assignment operator as well as the copy constructor.

each instance of this class stores a link to other instances of that same class and must be able to update those links as soon as it is moved into memory.

to be able to do this I must be able to overload the copy constructor and the assignment operator.

but it seems that this is not possible, partly because of the “Generated_body ()” mandatory at the beginning of my class.

How can I run some operations each time these two methods are used? is there a way to overload these methods or are there other similar functions?

I do not post an example code because my question is I think, sufficiently simple and clear. thank you in advance for your help.