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

Replace boost::ptr_set with std::set<std::unique_ptr>> #2714

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

nvmkuruc
Copy link
Collaborator

Description of Change(s)

This replaces boost::ptr_set with a std::set of unique_ptrs. To achieve this, insert has been replaced by emplace and a custom compare function has been created to allow _Node and std::unique_ptr<_Node> to compared by the value of the node's key interchangeably.

This appears to fix a bug in the recovery when the wrong node was located by key. Previously, when the wrong node was released from the pointer set, this was re-inserted instead of the released node.

Fixes Issue(s)

  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8731

@pixar-oss pixar-oss merged commit bc26b50 into PixarAnimationStudios:dev Nov 1, 2023
5 checks passed
@nvmkuruc nvmkuruc deleted the ptrset branch December 29, 2023 03:12
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.

3 participants