Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove virtual from set_parent_for_children (issue #295) #296

Merged
merged 5 commits into from
Apr 16, 2020
Merged

Conversation

cattabiani
Copy link
Contributor

set_parent_for_children is called only in the constructors. The
virtual keyword unnecessary and generates only confusion.
Check issue #295 for more info

set_parent_for_children is called only in the constructors. The
virtual keyword unnecessary and generates only confusion.
@cattabiani cattabiani requested review from tristan0x and pramodk April 14, 2020 13:05
@cattabiani cattabiani self-assigned this Apr 14, 2020
@cattabiani cattabiani added the ast AST related issues label Apr 14, 2020
Copy link
Contributor

@ohm314 ohm314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@pramodk
Copy link
Contributor

pramodk commented Apr 15, 2020

@cattabiani : can you rename on master and resolve conflict?

katta and others added 4 commits April 15, 2020 11:03
@pramodk
Copy link
Contributor

pramodk commented Apr 16, 2020

I was bit concerned by "non-private non-virtual function being called through base class pointer pointing to derived class". But @tristan0x made that private and this is good.

@pramodk pramodk merged commit 25e654c into master Apr 16, 2020
@pramodk pramodk deleted the issue/295 branch April 16, 2020 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ast AST related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants