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::iterator_facade with explicit implementation for pcp/node.h #2389

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

nvmkuruc
Copy link
Collaborator

@nvmkuruc nvmkuruc commented Apr 18, 2023

Description of Change(s)

  • Replace iterator_facade with explicit operators for PcpNodeRef_ChildrenIterator and PcpNodeRef_ChildrenReverseIterator

Fixes Issue(s)

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

@nvmkuruc nvmkuruc changed the title Replace 'boost::iterator_facade with explicit implementation for pcp/node.h` Replace boost::iterator_facade with explicit implementation for pcp/node.h Apr 18, 2023
@sunyab
Copy link
Contributor

sunyab commented Apr 20, 2023

Filed as internal issue #USD-8252

@@ -372,8 +369,28 @@ class PcpNodeRef_ChildrenIterator
PCP_API
PcpNodeRef_ChildrenIterator(const PcpNodeRef& node, bool end = false);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty confident that you will need operator-> for both of these iterator classes. They're exposed publicly as child_const_iterator and child_const_reverse_iterator (via typedef) and I can confirm that at least the maya open source code uses these iterators and dereferences via ->

@pixar-oss pixar-oss merged commit 217fa3c into PixarAnimationStudios:dev Jul 27, 2023
@nvmkuruc nvmkuruc deleted the pcpnodefacade branch December 29, 2023 03:11
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.

4 participants