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(unique_ptr): assigning nullptr to a null unique_ptr causes an assert #858

Conversation

dsludwig
Copy link
Contributor

@dsludwig dsludwig commented Mar 8, 2024

The assertion in reset(): p_ != p is triggered by the unconditional reset(nullptr) when unique_ptr already is set to nullptr.

Copy link

Review changes with SemanticDiff.

@jwellbelove jwellbelove changed the base branch from master to pull-request/#858-fix-unique_ptr-assigning-nullptr-to-a-null-unique_ptr-causes-an-assert March 9, 2024 14:57
@jwellbelove jwellbelove merged commit abb0494 into ETLCPP:pull-request/#858-fix-unique_ptr-assigning-nullptr-to-a-null-unique_ptr-causes-an-assert Mar 9, 2024
59 checks passed
jwellbelove pushed a commit that referenced this pull request Mar 10, 2024
…-null-unique_ptr-causes-an-assert' into development
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