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

fix missing virtual dtor on observable_reader_node #211

Merged

Conversation

TheCoconutChef
Copy link
Contributor

This commit fixes an issue where the observable_reader_node, which serve as a base class for reader_node, didn't have a virtual dtor.

This was made easier to miss in virtue of observable_reader_node not having any virtual method.

By having observable_reader_node derive from reader_node_base, we effectively fix the issue and by removing multiple inheritance. observable_reader_node now inherits its virtual dtor from reader_node_base.

This commit fixes an issue where the observable_reader_node, which serve
as a base class for reader_node, didn't have a virtual dtor.

This was made easier to miss in virtue of observable_reader_node not
having any virtual method.

By having observable_reader_node derive from reader_node_base, we
effectively fix the issue and by removing multiple inheritance.
observable_reader_node now inherits its virtual dtor from
reader_node_base.
@arximboldi
Copy link
Owner

Much better, yes, thank you!

@arximboldi arximboldi merged commit 3f68361 into arximboldi:master Sep 18, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants