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

[c++] Make destructors of base classes virtual #3484

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

jp-dark
Copy link
Collaborator

@jp-dark jp-dark commented Dec 19, 2024

Prevents undefined behavior if we ever attempt to delete a derived class through a pointer to the base class.

Copy link
Member

@johnkerl johnkerl left a comment

Choose a reason for hiding this comment

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

LGTM as long as CI completes green! ✨

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.32%. Comparing base (5ddab04) to head (34d640e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3484      +/-   ##
==========================================
+ Coverage   86.27%   86.32%   +0.04%     
==========================================
  Files          55       55              
  Lines        6339     6339              
==========================================
+ Hits         5469     5472       +3     
+ Misses        870      867       -3     
Flag Coverage Δ
python 86.32% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
python_api 86.32% <ø> (+0.04%) ⬆️
libtiledbsoma ∅ <ø> (∅)

@jp-dark jp-dark merged commit 7237cbf into main Dec 19, 2024
15 checks passed
@jp-dark jp-dark deleted the dark/virtual-destructors branch December 19, 2024 18:56
github-actions bot pushed a commit that referenced this pull request Dec 19, 2024
Prevents undefined behavior if we ever attempt to delete a derived class through a pointer to the base class.
johnkerl pushed a commit that referenced this pull request Dec 19, 2024
Prevents undefined behavior if we ever attempt to delete a derived class through a pointer to the base class.

Co-authored-by: Julia Dark <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants