Skip to content

Commit

Permalink
Merge pull request #2656 from nvmkuruc/wrapboost
Browse files Browse the repository at this point in the history
Replace boost type traits from python bindings

(Internal change: 2295064)
  • Loading branch information
pixar-oss committed Sep 18, 2023
2 parents 980510b + 52881bd commit 7c56db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxr/base/tf/pyEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ class Tf_PyEnumRegistry {
// In the case of producing a TfEnum or an integer, any
// registered enum type is fine. In all other cases, the
// enum types must match.
if (boost::is_same<T, TfEnum>::value ||
(boost::is_integral<T>::value && !boost::is_enum<T>::value))
if (std::is_same<T, TfEnum>::value ||
(std::is_integral<T>::value && !std::is_enum<T>::value))
return i != o2e.end() ? obj : 0;
else
return (i != o2e.end() && i->second.IsA<T>()) ? obj : 0;
Expand Down

0 comments on commit 7c56db6

Please sign in to comment.