-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
boost::transform_iterator
can be replaced
#2272
Comments
I have a fix. |
2 tasks
Filed as internal issue #USD-8010 |
This was addressed last year and can be closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of Issue
There are currently two usages of
boost::transform_iterator
in USD.In
UsdProperty
, it's used as the input toSdfPathFindLongestPrefix
. However,SdfPathFindLongestPrefix
also takes a function argument that is applied to the iterator. This argument can be used intransform_iterator
's stead.In
stage.cpp
, it's used twice. In_Stringify
, an intermediateSdfPathVector
is currently already created and sostd::transform
can be used without additional overhead. The other usage transforms the inputs for usage in a private internal helper function. However, the helper function is only used once in the file so the contract can be easily modified and the transformation moved inside of the helper.Steps to Reproduce
N/A
System Information (OS, Hardware)
N/A
Package Versions
N/A
Build Flags
N/A
The text was updated successfully, but these errors were encountered: