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_PP_ITERATE with templates in makePyConstructor.h #2752

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

nvmkuruc
Copy link
Collaborator

Description of Change(s)

BOOST_PP_ITERATE was being used to expand macros into implementations of the various TfMakePy... utilities. Many of these can be replaced by variadic argument templates with minimal changes. InitCtorWithVarArgs used by TfMakePyCtorWithVarArgs required adding a little indirection to create an std::index_sequence capable of splitting the boost python args tuple into the C++ constructor named positional args and unnamed variable length args.

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 force-pushed the makepyconstuctor branch 6 times, most recently from bdbc614 to ebfdaa5 Compare October 20, 2023 23:29
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-8863

@pixar-oss pixar-oss merged commit c749296 into PixarAnimationStudios:dev Nov 1, 2023
5 checks passed
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