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 iterator implementation for SdfListProxy #2548

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

nvmkuruc
Copy link
Collaborator

@nvmkuruc nvmkuruc commented Jul 24, 2023

Description of Change(s)

  • Replace iterator_facade with explicit implementation for SdfListProxy's iterator

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-8521


_Iterator(Owner owner, size_t index) : _owner(owner), _index(index)
{
// Do nothing
}

reference operator*() const { return dereference(); }

Choose a reason for hiding this comment

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

I'm confused as to why this -> returns the address directly when you define pointer = _PtrProxy and static_assert that value type of reference is not an lvalue. My expectation is that your assert would mean we always return the _PtrProxy or that we want a conditional type here like you did SdfMapEditProxy

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're right! That was an error. Thanks.

@pixar-oss pixar-oss merged commit 864252f into PixarAnimationStudios:dev Aug 4, 2023
@nvmkuruc nvmkuruc deleted the sdflistproxyfacade 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