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 std::auto_ptr #33

Merged
merged 6 commits into from
Aug 1, 2024
Merged

Remove std::auto_ptr #33

merged 6 commits into from
Aug 1, 2024

Conversation

Marcus10110
Copy link
Contributor

@Marcus10110 Marcus10110 commented Jul 31, 2024

auto_ptr was the wrong tool for the job when we first started the Analyzer API many years ago. This PR removes it.

We now use std::unique_ptr for the Results member, because that needs to get reset each time the analyzer is re-run for a single instance of the analyzer class.

#32

@Marcus10110 Marcus10110 marked this pull request as draft July 31, 2024 20:25
…irectly with the default assignment operator broke its mutexes.
@Marcus10110 Marcus10110 marked this pull request as ready for review July 31, 2024 21:03
@Marcus10110 Marcus10110 requested a review from huffman July 31, 2024 21:03
@Marcus10110 Marcus10110 merged commit 4a803b0 into master Aug 1, 2024
4 checks passed
@Marcus10110 Marcus10110 deleted the remove-auto-ptr branch August 1, 2024 20:47
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