GENERATED_BODY() causing function declaration and member inaccessibility errors

I did this:

		m_Leader = *(NewObject<UCGenome>(&NewMember));

I had to add the because otherwise it was giving error that it is unable to deduce the type. But now it goes back to the initial error of operator ‘=’ being inaccessible. I have commented out the declaration of the operator in the .h file but it is still giving this error.

I apologize for asking basic questions. Please bear with me.