Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SomeAlphabetGuy
Copy link
Contributor

Any superclass that has virtual methods should also have a virtual destructor, otherwise there's a risk of undefined behavior (if an object of a subclass is deleted through a pointer to the superclass).

Any superclass that has virtual methods should also have a virtual destructor, otherwise there's a risk of undefined behavior (if an object of a subclass is deleted through a pointer to the superclass).
@ahojnnes
Copy link
Contributor

ahojnnes commented Jul 5, 2023

Thanks, good catch. Need to figure out why clang-tidy doesn't catch this one.

@ahojnnes ahojnnes merged commit 7ab7aa9 into colmap:dev Jul 5, 2023
@ahojnnes
Copy link
Contributor

ahojnnes commented Jul 5, 2023

Shouldn't happen again: #2001

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