Skip to content

Conversation

@kostasrim
Copy link
Contributor

@kostasrim kostasrim commented Oct 31, 2025

shared_ptr is used when an object is shared among threads and we want to destruct it in a thread safe manner when its last reference goes out of scope. This is not the case here and therefore we should use unique_ptr instead.

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