You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently two usages of boost::transform_iterator in USD.
In UsdProperty, it's used as the input to SdfPathFindLongestPrefix. However, SdfPathFindLongestPrefix also takes a function argument that is applied to the iterator. This argument can be used in transform_iterator's stead.
In stage.cpp, it's used twice. In _Stringify, an intermediate SdfPathVector is currently already created and so std::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:
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: