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

Calling SharedPtr ctor with nullptr causes violation; call default ctor #601

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

mezpusz
Copy link
Contributor

@mezpusz mezpusz commented Sep 15, 2024

No description provided.

@mezpusz
Copy link
Contributor Author

mezpusz commented Sep 15, 2024

Sorry @MichaelRawson, I should have listened!

@MichaelRawson
Copy link
Contributor

I'm equally culpable! Thinking about it you might get a performance win here too as you won't allocate a control block for nullptr.

@MichaelRawson MichaelRawson merged commit 752bd01 into master Sep 15, 2024
1 check passed
@MichaelRawson MichaelRawson deleted the fix-lpocomparator-sharedptr-violation branch September 15, 2024 10:30
@mezpusz
Copy link
Contributor Author

mezpusz commented Sep 15, 2024

You're right, this should be superior in all possible ways! Thanks for the fast merge!

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