y call your parent operator=()

I feel many developers have a need to invoke base class’s operator=(). Syntax is non-trivial. http://icu-project.org/docs/papers/cpp_report/the_anatomy_of_the_assignment_operator.html shows you can simply write

MyBase::operator=(RHS);

Q: What if you have mutiple parents? What are the consequences?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s